Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no fucks given for git no tracking information for the current branch #1406

Open
Jeff-Tian opened this issue Oct 20, 2023 · 4 comments
Open

Comments

@Jeff-Tian
Copy link

Jeff-Tian commented Oct 20, 2023

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.32 using Python 3.9.12 and ZSH 5.9

Your system (Debian 7, ArchLinux, Windows, etc.):

uname -a
Darwin A-FSBRLN3.corp.com 22.6.0 Darwin Kernel Version 22.6.0: Fri Sep 15 13:41:28 PDT 2023; root:xnu-8796.141.3.700.8~1/RELEASE_ARM64_T6000 arm64

How to reproduce the bug:

git pull a branch without tracking information

   324b9f9..3a6a1c4  stg        -> origin/stg
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=<remote>/<branch> feature/ONEPOR-70-local-connection

➜  xxx git:(feature/ONEPOR-70-local-connection) fuck
No fucks given

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

THEFUCK_DEBUG=true fuck
DEBUG: Run with settings: {'alter_history': True,
 'debug': True,
 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
 'exclude_rules': [],
 'excluded_search_path_prefixes': [],
 'history_limit': None,
 'instant_mode': False,
 'no_colors': False,
 'num_close_matches': 3,
 'priority': {},
 'repeat': False,
 'require_confirmation': True,
 'rules': [<const: All rules enabled>],
 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
 'user_dir': PosixPath('/Users/jeff-tian/.config/thefuck'),
 'wait_command': 3,
 'wait_slow_command': 15}
DEBUG: Execution timed out!
DEBUG: Call: git pull; with env: {'TERM_SESSION_ID': 'w0t1p0:531B81F9-2C09-4FDF-AC55-31BD9D29B45D', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.id6diS4hHJ/Listeners', 'LC_TERMINAL_VERSION': '3.4.20', 'COLORFGBG': '7;0', 'ITERM_PROFILE': 'Default', 'XPC_FLAGS': '0x0', 'PWD': '/Users/jeff-tian/xxx', 'SHELL': '/bin/zsh', '__CFBundleIdentifier': 'com.googlecode.iterm2', 'SECURITYSESSIONID': '186b4', 'LC_CTYPE': 'UTF-8', 'TERM_PROGRAM_VERSION': '3.4.20', 'TERM_PROGRAM': 'iTerm.app', 'PATH': '/Users/jeff-tian/.yarn/bin:/Users/jeff-tian/.config/yarn/global/node_modules/.bin:/usr/local/opt/mysql-client/bin:/usr/local/anaconda3/bin:/usr/local/opt/openjdk/bin:/Users/jeff-tian/.nvm/versions/node/v18.3.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/jeff-tian/.dotnet/tools', 'LC_TERMINAL': 'iTerm2', 'COLORTERM': 'truecolor', 'COMMAND_MODE': 'unix2003', 'TERM': 'xterm-256color', 'HOME': '/Users/jeff-tian', 'TMPDIR': '/var/folders/fd/yt12wsq50y32bmklschq32w80000gp/T/', 'USER': 'jeff-tian', 'XPC_SERVICE_NAME': '0', 'LOGNAME': 'jeff-tian', 'LaunchInstanceID': '177E812F-0B10-4E04-86AE-8AD3775CD863', 'ITERM_SESSION_ID': 'w0t1p0:531B81F9-2C09-4FDF-AC55-31BD9D29B45D', '__CF_USER_TEXT_ENCODING': '0x1F6:0x0:0x0', 'SHLVL': '1', 'OLDPWD': '/Users/jeff-tian/xxx', 'HOMEBREW_PREFIX': '/opt/homebrew', 'HOMEBREW_CELLAR': '/opt/homebrew/Cellar', 'HOMEBREW_REPOSITORY': '/opt/homebrew', 'MANPATH': '/Users/jeff-tian/.nvm/versions/node/v18.3.0/share/man:/opt/homebrew/share/man::', 'INFOPATH': '/opt/homebrew/share/info:', 'ZSH': '/Users/jeff-tian/.oh-my-zsh', 'PAGER': 'less', 'LESS': '-R', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'HOMEBREW_BOTTLE_DOMAIN': 'https://mirrors.aliyun.com/homebrew/homebrew-bottles', 'NVM_DIR': '/Users/jeff-tian/.nvm', 'NVM_CD_FLAGS': '-q', 'NVM_BIN': '/Users/jeff-tian/.nvm/versions/node/v18.3.0/bin', 'NVM_INC': '/Users/jeff-tian/.nvm/versions/node/v18.3.0/include/node', 'JAVA_HOME': '/usr/local/opt/openjdk', 'TF_SHELL': 'zsh', 'TF_ALIAS': 'fuck', 'TF_SHELL_ALIASES': '-=\'cd -\'\n...=../..\n....=../../..\n.....=../../../..\n......=../../../../..\n1=\'cd -1\'\n2=\'cd -2\'\n3=\'cd -3\'\n4=\'cd -4\'\n5=\'cd -5\'\n6=\'cd -6\'\n7=\'cd -7\'\n8=\'cd -8\'\n9=\'cd -9\'\n_=\'sudo \'\nafind=\'ack -il\'\naws-dev=\'printf \'\\\'\'18\'\\\'\' | aws-login\'\naws-login=\'CYBERARK_SERVER=pam.corp.com ADFS_DOMAIN=adfs1.corp.com ADFS_DOMAIN_USERNAME=jeff-tian ADFS_DOMAIN_PASSWORD=xxx python3 main.py -r cn-northwest-1 --no-certificate-verify\'\naws-stg=\'printf \'\\\'\'13\'\\\'\' | aws-login\'\nc=code\ndd=\'docker compose down\'\ndiff=\'diff --color\'\ndud=\'docker compose up -d\'\negrep=\'egrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\nfgrep=\'fgrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\ng=git\nga=\'git add -A .\'\ngaa=\'git add --all\'\ngam=\'git am\'\ngama=\'git am --abort\'\ngamc=\'git am --continue\'\ngams=\'git am --skip\'\ngamscp=\'git am --show-current-patch\'\ngap=\'git apply\'\ngapa=\'git add --patch\'\ngapt=\'git apply --3way\'\ngau=\'git add --update\'\ngav=\'git add --verbose\'\ngb=\'git branch\'\ngbD=\'git branch -D\'\ngba=\'git branch -a\'\ngbd=\'git branch -d\'\ngbda=\'git branch --no-color --merged | command grep -vE "^([+*]|\\s*($(git_main_branch)|$(git_develop_branch))\\s*$)" | command xargs git branch -d 2>/dev/null\'\ngbl=\'git blame -b -w\'\ngbnm=\'git branch --no-merged\'\ngbr=\'git branch --remote\'\ngbs=\'git bisect\'\ngbsb=\'git bisect bad\'\ngbsg=\'git bisect good\'\ngbsr=\'git bisect reset\'\ngbss=\'git bisect start\'\ngc=\'git commit -am\'\n\'gc!\'=\'git commit -v --amend\'\ngc-=\'git checkout -\'\ngca=\'git commit -v -a\'\n\'gca!\'=\'git commit -v -a --amend\'\ngcam=\'git commit -a -m\'\n\'gcan!\'=\'git commit -v -a --no-edit --amend\'\n\'gcans!\'=\'git commit -v -a -s --no-edit --amend\'\ngcas=\'git commit -a -s\'\ngcasm=\'git commit -a -s -m\'\ngcb=\'git checkout -b\'\ngcd=\'git checkout develop\'\ngcf=\'git config --list\'\ngcl=\'git clone --recurse-submodules\'\ngclean=\'git clean -id\'\ngcm=\'git checkout $(git_main_branch)\'\ngcmsg=\'git commit -m\'\n\'gcn!\'=\'git commit -v --no-edit --amend\'\ngco=\'git checkout\'\ngcor=\'git checkout --recurse-submodules\'\ngcount=\'git shortlog -sn\'\ngcp=\'git cherry-pick\'\ngcpa=\'git cherry-pick --abort\'\ngcpc=\'git cherry-pick --continue\'\ngcs=\'git commit -S\'\ngcsm=\'git commit -s -m\'\ngcss=\'git commit -S -s\'\ngcssm=\'git commit -S -s -m\'\ngd=\'git diff\'\ngdca=\'git diff --cached\'\ngdct=\'git describe --tags $(git rev-list --tags --max-count=1)\'\ngdcw=\'git diff --cached --word-diff\'\ngds=\'git diff --staged\'\ngdt=\'git diff-tree --no-commit-id --name-only -r\'\ngdup=\'git diff @{upstream}\'\ngdw=\'git diff --word-diff\'\ngf=\'git fetch\'\ngfa=\'git fetch --all --prune --jobs=10\'\ngfg=\'git ls-files | grep\'\ngfo=\'git fetch origin\'\ngg=\'git gui citool\'\ngga=\'git gui citool --amend\'\nggpull=\'git pull origin "$(git_current_branch)"\'\nggpur=ggu\nggpush=\'git push origin "$(git_current_branch)"\'\nggsup=\'git branch --set-upstream-to=origin/$(git_current_branch)\'\nghh=\'git help\'\ngignore=\'git update-index --assume-unchanged\'\ngignored=\'git ls-files -v | grep "^[[:lower:]]"\'\ngit-svn-dcommit-push=\'git svn dcommit && git push github $(git_main_branch):svntrunk\'\ngk=\'\\gitk --all --branches &!\'\ngke=\'\\gitk --all $(git log -g --pretty=%h) &!\'\ngl=\'git log --oneline\'\nglg=\'git log --stat\'\nglgg=\'git log --graph\'\nglgga=\'git log --graph --decorate --all\'\nglgm=\'git log --graph --max-count=10\'\nglgp=\'git log --stat -p\'\nglo=\'git log --oneline --decorate\'\ngloburl=\'noglob urlglobber \'\nglod=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\'\\\'\nglods=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\'\\\'\' --date=short\'\nglog=\'git log --oneline --decorate --graph\'\ngloga=\'git log --oneline --decorate --graph --all\'\nglol=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\nglola=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\' --all\'\nglols=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\'\\\'\' --stat\'\nglp=_git_log_prettily\nglum=\'git pull upstream $(git_main_branch)\'\ngm=\'git merge\'\ngma=\'git merge --abort\'\ngmom=\'git merge origin/$(git_main_branch)\'\ngmtl=\'git mergetool --no-prompt\'\ngmtlvim=\'git mergetool --no-prompt --tool=vimdiff\'\ngmum=\'git merge upstream/$(git_main_branch)\'\ngp=\'git push\'\ngpd=\'git push --dry-run\'\ngpf=\'git push --force-with-lease\'\n\'gpf!\'=\'git push --force\'\ngpl=\'git pull\'\ngpoat=\'git push origin --all && git push origin --tags\'\ngpr=\'git pull --rebase\'\ngpristine=\'git reset --hard && git clean -dffx\'\ngps=\'git push --set-upstream origin \'\ngpsup=\'git push --set-upstream origin $(git_current_branch)\'\ngpu=\'git push upstream\'\ngpv=\'git push -v\'\ngr=\'git remote\'\ngra=\'git remote add\'\ngrb=\'git rebase\'\ngrba=\'git rebase --abort\'\ngrbc=\'git rebase --continue\'\ngrbd=\'git rebase $(git_develop_branch)\'\ngrbi=\'git rebase -i\'\ngrbm=\'git rebase $(git_main_branch)\'\ngrbo=\'git rebase --onto\'\ngrbom=\'git rebase origin/$(git_main_branch)\'\ngrbs=\'git rebase --skip\'\ngrep=\'grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\'\ngrev=\'git revert\'\ngrh=\'git reset\'\ngrhh=\'git reset --hard\'\ngrm=\'git rm\'\ngrmc=\'git rm --cached\'\ngrmv=\'git remote rename\'\ngroh=\'git reset origin/$(git_current_branch) --hard\'\ngrrm=\'git remote remove\'\ngrs=\'git restore\'\ngrset=\'git remote set-url\'\ngrss=\'git restore --source\'\ngrst=\'git restore --staged\'\ngrt=\'cd "$(git rev-parse --show-toplevel || echo .)"\'\ngru=\'git reset --\'\ngrup=\'git remote update\'\ngrv=\'git remote -v\'\ngs=\'git status\'\ngsb=\'git status -sb\'\ngsd=\'git svn dcommit\'\ngsh=\'git show\'\ngsi=\'git submodule init\'\ngsps=\'git show --pretty=short --show-signature\'\ngsr=\'git svn rebase\'\ngss=\'git status -s\'\ngst=\'git status\'\ngsta=\'git stash push\'\ngstaa=\'git stash apply\'\ngstall=\'git stash --all\'\ngstc=\'git stash clear\'\ngstd=\'git stash drop\'\ngstl=\'git stash list\'\ngstp=\'git stash pop\'\ngsts=\'git stash show --text\'\ngstu=\'gsta --include-untracked\'\ngsu=\'git submodule update\'\ngsw=\'git switch\'\ngswc=\'git switch -c\'\ngswd=\'git switch $(git_develop_branch)\'\ngswm=\'git switch $(git_main_branch)\'\ngtl=\'gtl(){ git tag --sort=-v:refname -n -l "${1}*" }; noglob gtl\'\ngts=\'git tag -s\'\ngtv=\'git tag | sort -V\'\ngunignore=\'git update-index --no-assume-unchanged\'\ngunwip=\'git log -n 1 | grep -q -c "\\-\\-wip\\-\\-" && git reset HEAD~1\'\ngup=\'git pull --rebase\'\ngupa=\'git pull --rebase --autostash\'\ngupav=\'git pull --rebase --autostash -v\'\ngupom=\'git pull --rebase origin $(git_main_branch)\'\ngupomi=\'git pull --rebase=interactive origin $(git_main_branch)\'\ngupv=\'git pull --rebase -v\'\ngwch=\'git whatchanged -p --abbrev-commit --pretty=medium\'\ngwip=\'git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]"\'\nhistory=omz_history\nk=kubectl\nk-okteto=\'k8ss switch --cluster=okteto --namespace=jeff-tian\'\nkcu=\'kubectl config use-context\'\nkcuprd=\'kubectl config use-context prd-chi\'\nkcustg=\'kubectl config use-context stg-chi\'\nkubesail=\'k8ss switch --cluster=kubesail --namespace=jeff-tian\'\nl=\'ls -lah\'\nla=\'ls -lAh\'\nll=\'ls -lh\'\nls=\'ls -G\'\nlsa=\'ls -lah\'\nmd=\'mkdir -p\'\nrd=rmdir\nrun-help=man\nwcli=/Applications/wechatwebdevtools.app/Contents/MacOS/cli\nwhich-command=whence\nws=webstorm', 'PYTHONIOENCODING': 'utf-8', 'THEFUCK_DEBUG': 'true', 'TF_HISTORY': 'gco .\ngs\ngpl\nfuck\ngit branch --set-upstream-to=<remote>/<branch> feature/ONEPOR-70-local-connection\ngit branch --set-upstream-to=origin/feature/ONEPOR-70-local-connection feature/ONEPOR-70-local-connection\ngs\nthefuck --version\nuname -a\ngit pull', '_': '/usr/local/anaconda3/bin/thefuck', 'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'}; is slow: False took: 0:00:03.031259
DEBUG: Importing rule: adb_unknown_command; took: 0:00:00.009632
DEBUG: Importing rule: ag_literal; took: 0:00:00.001731
DEBUG: Importing rule: apt_get; took: 0:00:00.007191
DEBUG: Importing rule: apt_get_search; took: 0:00:00.001507
DEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.004096
DEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.001825
DEBUG: Importing rule: apt_upgrade; took: 0:00:00.001767
DEBUG: Importing rule: aws_cli; took: 0:00:00.001302
DEBUG: Importing rule: az_cli; took: 0:00:00.003286
DEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.004179
DEBUG: Importing rule: brew_install; took: 0:00:00.001365
DEBUG: Importing rule: brew_link; took: 0:00:00.002020
DEBUG: Importing rule: brew_reinstall; took: 0:00:00.003925
DEBUG: Importing rule: brew_uninstall; took: 0:00:00.001462
DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.002897
DEBUG: Importing rule: brew_update_formula; took: 0:00:00.001287
DEBUG: Importing rule: cargo; took: 0:00:00.001428
DEBUG: Importing rule: cargo_no_command; took: 0:00:00.001484
DEBUG: Importing rule: cat_dir; took: 0:00:00.001323
DEBUG: Importing rule: cd_correction; took: 0:00:00.006802
DEBUG: Importing rule: cd_cs; took: 0:00:00.001252
DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000215
DEBUG: Importing rule: cd_parent; took: 0:00:00.001755
DEBUG: Importing rule: chmod_x; took: 0:00:00.002721
DEBUG: Importing rule: choco_install; took: 0:00:00.001928
DEBUG: Importing rule: composer_not_command; took: 0:00:00.001256
DEBUG: Importing rule: conda_mistype; took: 0:00:00.001161
DEBUG: Importing rule: cp_create_destination; took: 0:00:00.001119
DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.001190
DEBUG: Importing rule: cpp11; took: 0:00:00.001196
DEBUG: Importing rule: dirty_untar; took: 0:00:00.004309
DEBUG: Importing rule: dirty_unzip; took: 0:00:00.001587
DEBUG: Importing rule: django_south_ghost; took: 0:00:00.001165
DEBUG: Importing rule: django_south_merge; took: 0:00:00.001011
DEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.002859
DEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.001393
DEBUG: Importing rule: docker_login; took: 0:00:00.001189
DEBUG: Importing rule: docker_not_command; took: 0:00:00.001511
DEBUG: Importing rule: dry; took: 0:00:00.001124
DEBUG: Importing rule: fab_command_not_found; took: 0:00:00.001479
DEBUG: Importing rule: fix_alt_space; took: 0:00:00.001138
DEBUG: Importing rule: fix_file; took: 0:00:00.002457
DEBUG: Importing rule: gem_unknown_command; took: 0:00:00.002580
DEBUG: Importing rule: git_add; took: 0:00:00.003020
DEBUG: Importing rule: git_add_force; took: 0:00:00.001172
DEBUG: Importing rule: git_bisect_usage; took: 0:00:00.001093
DEBUG: Importing rule: git_branch_0flag; took: 0:00:00.001273
DEBUG: Importing rule: git_branch_delete; took: 0:00:00.001114
DEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00.001167
DEBUG: Importing rule: git_branch_exists; took: 0:00:00.001220
DEBUG: Importing rule: git_branch_list; took: 0:00:00.001359
DEBUG: Importing rule: git_checkout; took: 0:00:00.001465
DEBUG: Importing rule: git_clone_git_clone; took: 0:00:00.001497
DEBUG: Importing rule: git_commit_add; took: 0:00:00.001133
DEBUG: Importing rule: git_commit_amend; took: 0:00:00.001462
DEBUG: Importing rule: git_commit_reset; took: 0:00:00.001060
DEBUG: Importing rule: git_diff_no_index; took: 0:00:00.001245
DEBUG: Importing rule: git_diff_staged; took: 0:00:00.001171
DEBUG: Importing rule: git_fix_stash; took: 0:00:00.001135
DEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.001180
DEBUG: Importing rule: git_help_aliased; took: 0:00:00.001068
DEBUG: Importing rule: git_hook_bypass; took: 0:00:00.001619
DEBUG: Importing rule: git_lfs_mistype; took: 0:00:00.001749
DEBUG: Importing rule: git_main_master; took: 0:00:00.001173
DEBUG: Importing rule: git_merge; took: 0:00:00.001143
DEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.001120
DEBUG: Importing rule: git_not_command; took: 0:00:00.002212
DEBUG: Importing rule: git_pull; took: 0:00:00.001058
DEBUG: Importing rule: git_pull_clone; took: 0:00:00.003248
DEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.007297
DEBUG: Importing rule: git_push; took: 0:00:00.003516
DEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.001191
DEBUG: Importing rule: git_push_force; took: 0:00:00.001087
DEBUG: Importing rule: git_push_pull; took: 0:00:00.001613
DEBUG: Importing rule: git_push_without_commits; took: 0:00:00.001757
DEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.001609
DEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.001374
DEBUG: Importing rule: git_remote_delete; took: 0:00:00.001886
DEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.002677
DEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.004758
DEBUG: Importing rule: git_rm_recursive; took: 0:00:00.004750
DEBUG: Importing rule: git_rm_staged; took: 0:00:00.003671
DEBUG: Importing rule: git_stash; took: 0:00:00.007167
DEBUG: Importing rule: git_stash_pop; took: 0:00:00.003294
DEBUG: Importing rule: git_tag_force; took: 0:00:00.001556
DEBUG: Importing rule: git_two_dashes; took: 0:00:00.001608
DEBUG: Importing rule: go_run; took: 0:00:00.001586
DEBUG: Importing rule: go_unknown_command; took: 0:00:00.002355
DEBUG: Importing rule: gradle_no_task; took: 0:00:00.002292
DEBUG: Importing rule: gradle_wrapper; took: 0:00:00.001619
DEBUG: Importing rule: grep_arguments_order; took: 0:00:00.001778
DEBUG: Importing rule: grep_recursive; took: 0:00:00.002804
DEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.003797
DEBUG: Importing rule: gulp_not_task; took: 0:00:00.002386
DEBUG: Importing rule: has_exists_script; took: 0:00:00.001878
DEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.004223
DEBUG: Importing rule: heroku_not_command; took: 0:00:00.001733
DEBUG: Importing rule: history; took: 0:00:00.001420
DEBUG: Importing rule: hostscli; took: 0:00:00.001670
DEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.005475
DEBUG: Importing rule: java; took: 0:00:00.002843
DEBUG: Importing rule: javac; took: 0:00:00.006800
DEBUG: Importing rule: lein_not_task; took: 0:00:00.001945
DEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.001175
DEBUG: Importing rule: ln_s_order; took: 0:00:00.001465
DEBUG: Importing rule: long_form_help; took: 0:00:00.002395
DEBUG: Importing rule: ls_all; took: 0:00:00.003771
DEBUG: Importing rule: ls_lah; took: 0:00:00.001356
DEBUG: Importing rule: man; took: 0:00:00.001350
DEBUG: Importing rule: man_no_space; took: 0:00:00.001100
DEBUG: Importing rule: mercurial; took: 0:00:00.001888
DEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.001530
DEBUG: Importing rule: mkdir_p; took: 0:00:00.001419
DEBUG: Importing rule: mvn_no_command; took: 0:00:00.001649
DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.001775
DEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.008208
DEBUG: Importing rule: no_command; took: 0:00:00.004183
DEBUG: Importing rule: no_such_file; took: 0:00:00.003911
DEBUG: Importing rule: npm_missing_script; took: 0:00:00.003365
DEBUG: Importing rule: npm_run_script; took: 0:00:00.001382
DEBUG: Importing rule: npm_wrong_command; took: 0:00:00.001399
DEBUG: Importing rule: omnienv_no_such_command; took: 0:00:00.017694
DEBUG: Importing rule: open; took: 0:00:00.004106
DEBUG: Importing rule: pacman; took: 0:00:00.009215
DEBUG: Importing rule: pacman_invalid_option; took: 0:00:00.003342
DEBUG: Importing rule: pacman_not_found; took: 0:00:00.002989
DEBUG: Importing rule: path_from_history; took: 0:00:00.008487
DEBUG: Importing rule: php_s; took: 0:00:00.002345
DEBUG: Importing rule: pip_install; took: 0:00:00.003317
DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.003302
DEBUG: Importing rule: port_already_in_use; took: 0:00:00.004048
DEBUG: Importing rule: prove_recursively; took: 0:00:00.006973
DEBUG: Importing rule: python_command; took: 0:00:00.004529
DEBUG: Importing rule: python_execute; took: 0:00:00.011516
DEBUG: Importing rule: python_module_error; took: 0:00:00.002669
DEBUG: Importing rule: quotation_marks; took: 0:00:00.001719
DEBUG: Importing rule: rails_migrations_pending; took: 0:00:00.001493
DEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.002124
DEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.001765
DEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.003791
DEBUG: Importing rule: rm_dir; took: 0:00:00.002696
DEBUG: Importing rule: rm_root; took: 0:00:00.001450
DEBUG: Importing rule: scm_correction; took: 0:00:00.003145
DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.003819
DEBUG: Importing rule: sl_ls; took: 0:00:00.001773
DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.002027
DEBUG: Importing rule: sudo; took: 0:00:00.002222
DEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.001785
DEBUG: Importing rule: switch_lang; took: 0:00:00.002027
DEBUG: Importing rule: systemctl; took: 0:00:00.002040
DEBUG: Importing rule: terraform_init; took: 0:00:00.001932
DEBUG: Importing rule: test.py; took: 0:00:00.001363
DEBUG: Importing rule: tmux; took: 0:00:00.001811
DEBUG: Importing rule: touch; took: 0:00:00.006436
DEBUG: Importing rule: tsuru_login; took: 0:00:00.001366
DEBUG: Importing rule: tsuru_not_command; took: 0:00:00.001951
DEBUG: Importing rule: unknown_command; took: 0:00:00.002216
DEBUG: Importing rule: unsudo; took: 0:00:00.001486
DEBUG: Importing rule: vagrant_up; took: 0:00:00.001543
DEBUG: Importing rule: whois; took: 0:00:00.002865
DEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.002571
DEBUG: Importing rule: wrong_hyphen_before_subcommand; took: 0:00:00.001712
DEBUG: Importing rule: yarn_alias; took: 0:00:00.001744
DEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.002924
DEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.002515
DEBUG: Importing rule: yarn_help; took: 0:00:00.009261
DEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.002652
DEBUG: Trying rule: dirty_unzip; took: 0:00:00.000147
DEBUG: Trying rule: git_hook_bypass; took: 0:00:00.000028
DEBUG: Trying rule: wrong_hyphen_before_subcommand; took: 0:00:00.000009
No fucks given
DEBUG: Total took: 0:00:03.553147

If the bug only appears with a specific application, the output of that application and its version:

git pull

Anything else you think is relevant:

image
@dimritium
Copy link

this does not seem to be issue with the repo. It looks like you created a feature branch on your local and there is no remote branch with the same name. You would need to specify from which branch you want to pull.

In your case it might be
git pull master

@Jeff-Tian
Copy link
Author

No, that remote branch exists.

I am expecting that the fuck will fix my command to suggest I type:

git branch --set-upstream-to=feature/ONEPOR-70-local-connection feature/ONEPOR-70-local-connection

@dimritium
Copy link

ah got it, so you want thefuck to fix the git pull command.

@dimritium
Copy link

dimritium commented Oct 29, 2023

I tested and found it correctly fixing the git pull command:
image

did I test this correctly or missed something?

Current version info:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants