def checkout(branch, force=False): ''' The git checkout command. ''' force_flag = '-f ' if force else '' run('git checkout {0}{1}'.format(force_flag, branch))