def sync(branch): ''' Sync the current HEAD with the remote(origin)'s branch ''' run('git reset --hard origin/%s' % branch) # TODO: Custom origin