nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
85.4k stars 3.43k forks source link

git push to branch not of same name: use git's suggestion #652

Closed waldyrious closed 7 years ago

waldyrious commented 7 years ago

I checked out a branch with a different name than the remote counterpart:

$ git checkout -b local-branch myupstream/remote-branch

When I attempted to push my changes upstream, I got the following error:

$ git push -f
fatal: The upstream branch of your current branch does not match
the name of your current branch.  To push to the upstream branch
on the remote, use

    git push myupstream HEAD:remote-branch

To push to the branch of the same name on the remote, use

    git push myupstream local-branch

However, thefuck didn't use this information to provide a suggestion:

$ fuck
git push -d [enter/↑/↓/ctrl+c] 
Epse commented 7 years ago

made a quick PR. In need of testing

oowekyala commented 4 years ago

Edit: nevermind, I was using a very outdated version of thefuck. Please ignore this comment


Hi, I get a weird warning message and thefuck just proposes git push as a correction without using Git's suggestion:

The output of thefuck --version:

The Fuck 3.2 using Python 2.7.12
git version 2.24.0

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

Ubuntu 16.04 

How to reproduce the bug:

15:23 @~/repo (master) $ git checkout -b other 
15:23 @~/repo (other) $ git branch other -u origin/master
Branch 'other' set up to track remote branch 'master' from 'origin'.

15:23 @~/repo (other) $ git push
fatal: The upstream branch of your current branch does not match
the name of your current branch.  To push to the upstream branch
on the remote, use

    git push origin HEAD:master

To push to the branch of the same name on the remote, use

    git push origin HEAD


15:23 @~/repo (other) $ fuck
/usr/share/thefuck/thefuck/rules/history.py:24: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  and line.split(' ')[0] in executables]
git push [enter/↑/↓/ctrl+c]
Aborted

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

DEBUG: Run with settings: {'debug': True,
 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
 'exclude_rules': [],
 'no_colors': False,
 'priority': {},
 'require_confirmation': True,
 'rules': [<object object at 0x7f331d9fb140>],
 'user_dir': PosixPath('/home/clifrr/.config/thefuck'),
 'wait_command': 3}
DEBUG: Received stdout: 
DEBUG: Received stderr: 15:30:57.589482 git.c:439               trace: built-in: git push
fatal: The upstream branch of your current branch does not match
the name of your current branch.  To push to the upstream branch
on the remote, use

    git push origin HEAD:master

To push to the branch of the same name on the remote, use

    git push origin HEAD

DEBUG: Call: hub push; with env: {'XDG_SESSION_TYPE': 'x11', 'LC_PAPER': 'fr_FR.UTF-8', 'SHELL': '/bin/bash', 'IJ_HOME': '/opt/idea-IU-171.4249.39', 'XDG_DATA_DIRS': '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop', 'MANDATORY_PATH': '/usr/share/gconf/ubuntu.mandatory.path', 'CLUTTER_IM_MODULE': 'xim', 'NVM_BIN': '/home/clifrr/.nvm/versions/node/v10.15.3/bin', 'JOB': 'dbus', 'SESSION': 'ubuntu', 'DESKTOP_AUTOSTART_ID': '10f6bf24192916154157624209955398100000035230001', 'XMODIFIERS': '@im=ibus', 'JAVA_HOME': '/usr/lib/jvm/java-10-oracle', 'GTK2_MODULES': 'overlay-scrollbar', 'XDG_RUNTIME_DIR': '/run/user/1000', 'LC_ADDRESS': 'fr_FR.UTF-8', 'DESKTOP_SESSION': 'ubuntu', 'JAVA8_HOME': '/usr/lib/jvm/java-8-oracle', 'QT_ACCESSIBILITY': '1', 'XDG_SESSION_ID': 'c2', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-D467xZAkSu', 'DEFAULTS_PATH': '/usr/share/gconf/ubuntu.default.path', 'LESS_TERMCAP_ue': '\x1b[0m', 'GTK_MODULES': 'gail:atk-bridge:unity-gtk-module', 'GIT_TRACE': '1', 'INSTANCE': '', 'LESS_TERMCAP_us': '\x1b[01;37m', 'LC_NAME': 'fr_FR.UTF-8', 'XDG_MENU_PREFIX': 'gnome-', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'LC_NUMERIC': 'fr_FR.UTF-8', 'OPAMNOENVNOTICE': 'true', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'SCALA_HOME': '/usr/local/scala-2.12.6', 'USER': 'clifrr', 'M2': '/usr/local/apache-maven/apache-maven-3.5.0/bin', 'XDG_VTNR': '7', 'SDKMAN_CANDIDATES_API': 'https://api.sdkman.io/2', 'XAUTHORITY': '/home/clifrr/.Xauthority', 'LANGUAGE': 'fr_FR:en', 'SESSION_MANAGER': 'local/wakashan:@/tmp/.ICE-unix/3523,unix/wakashan:/tmp/.ICE-unix/3523', 'LC_MEASUREMENT': 'fr_FR.UTF-8', 'QT_QPA_PLATFORMTHEME': 'appmenu-qt5', 'GTK_CSD': '1', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'EDITOR': 'vim', 'M2_HOME': '/usr/local/apache-maven/apache-maven-3.5.0', 'GPG_AGENT_INFO': '/home/clifrr/.gnupg/S.gpg-agent:0:1', 'SDKMAN_CANDIDATES_DIR': '/home/clifrr/.sdkman/candidates', 'LANG': 'C', 'SDKMAN_DIR': '/home/clifrr/.sdkman', 'JAVA8_040_HOME': '/usr/lib/jvm/jdk1.8.0_40', 'GDMSESSION': 'ubuntu', 'MANPAGER': 'less -s -M +Gg', 'ENV': '/home/clifrr/.environment', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', '_': '/usr/bin/thefuck', 'GTK_IM_MODULE': 'ibus', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg', 'LC_TIME': 'fr_FR.UTF-8', 'XDG_GREETER_DATA_DIR': '/var/lib/lightdm-data/clifrr', 'QT4_IM_MODULE': 'xim', 'NVM_DIR': '/home/clifrr/.nvm', 'HOME': '/home/clifrr', 'DISPLAY': ':0', 'XDG_SESSION_DESKTOP': 'ubuntu', 'MAVEN_OPTS': '-Xms256m -Xmx512m', 'PMD_HOME': '/usr/local/pmd/pmd-bin-6.18.0', 'LC_MONETARY': 'fr_FR.UTF-8', 'QT_LINUX_ACCESSIBILITY_ALWAYS_ON': '1', 'CAML_LD_LIBRARY_PATH': '/home/clifrr/.opam/4.07.0/lib/stublibs:/home/clifrr/.opam/4.07.0/lib/ocaml/stublibs:/home/clifrr/.opam/4.07.0/lib/ocaml', 'MANPATH': '/home/clifrr/.opam/4.07.0/man:/usr/local/texlive/2019/texmf-dist/doc/man:/home/clifrr/.opam/4.07.0/man::/home/clifrr/.nvm/versions/node/v10.15.3/share/man:/home/clifrr/.opam/4.07.0/man', 'LC_IDENTIFICATION': 'fr_FR.UTF-8', 'GROOVY_HOME': '/home/clifrr/.sdkman/candidates/groovy/current', 'VISUAL': 'vim', 'OCAML_TOPLEVEL_PATH': '/home/clifrr/.opam/4.07.0/lib/toplevel', 'GPG_TTY': '/dev/pts/19', 'SDKMAN_VERSION': '5.7.3+337', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'GNOME_KEYRING_PID': '', 'GUAKE_TAB_UUID': '930899d5-f8be-4525-a77b-cf027e1a64d4', 'PAPERSIZE': 'a4', 'JAVA9_HOME': '/usr/lib/jvm/java-9-oracle', 'GRAALVM_HOME': '/usr/local/graalvm-ce-19.3.0', 'J2REDIR': '/usr/lib/jvm/java-10-oracle', 'NVM_CD_FLAGS': '', 'XDG_CURRENT_DESKTOP': 'Unity', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'clifrr', 'XDG_SEAT': 'seat0', 'GNOME_KEYRING_CONTROL': '', 'PATH': '/home/clifrr/.opam/4.07.0/bin:/home/clifrr/.opam/4.07.0/bin:/home/clifrr/bin:/home/clifrr/.local/bin:/home/clifrr/.sdkman/candidates/groovy/current/bin:/home/clifrr/.nvm/versions/node/v10.15.3/bin:/home/clifrr/Documents/Git/mx:/usr/local/scala-2.12.6/bin:/opt/bin:/home/clifrr/bin:/usr/local/apache-maven/apache-maven-3.5.0/bin:/home/clifrr/.opam/4.07.0/bin:/home/clifrr/bin:/home/clifrr/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-10-oracle/bin:/usr/lib/jvm/java-10-oracle/db/bin:/usr/lib/jvm/java-10-oracle/bin:/usr/lib/jvm/java-10-oracle/db/bin:/usr/lib/jvm/java-10-oracle/bin:/opt/gradle/gradle-4.3.1/bin:/usr/local/texlive/2019/bin/x86_64-linux:/usr/local/go/bin:/usr/local/dotty-0.8.0/bin', 'RCF': '/home/clifrr/.environment', 'TERM': 'xterm', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', 'QT_STYLE_OVERRIDE': 'gtk', 'LESS_TERMCAP_me': '\x1b[0m', 'LESS_TERMCAP_md': '\x1b[1;33m', 'LESS_TERMCAP_mb': '\x1b[1;31m', 'GCC_COLORS': 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01', 'SESSIONTYPE': 'gnome-session', 'IM_CONFIG_PHASE': '1', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '3833', 'JAVAFX_HOME': '/usr/lib/jvm/javafx-sdk-11.0.2', 'GROFF_NO_SGR': '1', 'GIO_LAUNCHED_DESKTOP_FILE': '/home/clifrr/.config/autostart/guake.desktop', 'GITHUB_AUTH': 'ae4efc25acc10b400a241e9c4e8d1bbab92f8662', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'J2SDKDIR': '/usr/lib/jvm/java-10-oracle', 'JAVA11_HOME': '/usr/lib/jvm/openjdk-11-ea', 'LC_ALL': 'C', 'SDKMAN_PLATFORM': 'Linux64', 'DERBY_HOME': '/usr/lib/jvm/java-10-oracle/db', 'UPSTART_SESSION': 'unix:abstract=/com/ubuntu/upstart-session/1000/3089', 'OLDPWD': '/home/clifrr/Documents/Git', 'GDM_LANG': 'fr_FR', 'LC_TELEPHONE': 'fr_FR.UTF-8', 'LESS_TERMCAP_se': '\x1b[0m', 'SHLVL': '1', 'PWD': '/home/clifrr/Documents/Git/lang-experiments', 'JAVA10_HOME': '/usr/lib/jvm/java-10-oracle', 'THEFUCK_DEBUG': 'true', 'LESS_TERMCAP_so': '\x1b[01;44;37m', 'OPAM_SWITCH_PREFIX': '/home/clifrr/.opam/4.07.0'}; took: 0:00:00.005249
DEBUG: Importing rule: apt_get; took: 0:00:00.000206
DEBUG: Importing rule: apt_get_search; took: 0:00:00.000311
DEBUG: Importing rule: brew_install; took: 0:00:00.000363
DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000079
DEBUG: Importing rule: brew_upgrade; took: 0:00:00.000032
DEBUG: Importing rule: cargo; took: 0:00:00.000026
DEBUG: Importing rule: cargo_no_command; took: 0:00:00.000155
DEBUG: Importing rule: cd_correction; took: 0:00:00.000708
DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000273
DEBUG: Importing rule: cd_parent; took: 0:00:00.000052
DEBUG: Importing rule: composer_not_command; took: 0:00:00.000217
DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000276
DEBUG: Importing rule: cpp11; took: 0:00:00.000152
DEBUG: Importing rule: dirty_untar; took: 0:00:00.001316
DEBUG: Importing rule: dirty_unzip; took: 0:00:00.000305
DEBUG: Importing rule: django_south_ghost; took: 0:00:00.000068
DEBUG: Importing rule: django_south_merge; took: 0:00:00.000027
DEBUG: Importing rule: docker_not_command; took: 0:00:00.000292
DEBUG: Importing rule: dry; took: 0:00:00.000047
DEBUG: Importing rule: fix_alt_space; took: 0:00:00.000201
DEBUG: Importing rule: fix_file; took: 0:00:00.001880
DEBUG: Importing rule: git_add; took: 0:00:00.000343
DEBUG: Importing rule: git_branch_delete; took: 0:00:00.000199
DEBUG: Importing rule: git_branch_list; took: 0:00:00.000159
DEBUG: Importing rule: git_checkout; took: 0:00:00.000285
DEBUG: Importing rule: git_diff_staged; took: 0:00:00.000163
DEBUG: Importing rule: git_fix_stash; took: 0:00:00.000168
DEBUG: Importing rule: git_not_command; took: 0:00:00.000156
DEBUG: Importing rule: git_pull; took: 0:00:00.000160
DEBUG: Importing rule: git_pull_clone; took: 0:00:00.000158
DEBUG: Importing rule: git_push; took: 0:00:00.000148
DEBUG: Importing rule: git_push_force; took: 0:00:00.000151
DEBUG: Importing rule: git_push_pull; took: 0:00:00.000156
DEBUG: Importing rule: git_stash; took: 0:00:00.000153
DEBUG: Importing rule: git_two_dashes; took: 0:00:00.000152
DEBUG: Importing rule: go_run; took: 0:00:00.000143
DEBUG: Importing rule: grep_recursive; took: 0:00:00.000207
DEBUG: Importing rule: gulp_not_task; took: 0:00:00.000151
DEBUG: Importing rule: has_exists_script; took: 0:00:00.000206
DEBUG: Importing rule: heroku_not_command; took: 0:00:00.000149
DEBUG: Importing rule: history; took: 0:00:00.000074
DEBUG: Importing rule: java; took: 0:00:00.000157
DEBUG: Importing rule: javac; took: 0:00:00.000152
DEBUG: Importing rule: lein_not_task; took: 0:00:00.000230
DEBUG: Importing rule: ls_lah; took: 0:00:00.000143
DEBUG: Importing rule: man; took: 0:00:00.000138
DEBUG: Importing rule: man_no_space; took: 0:00:00.000028
DEBUG: Importing rule: mercurial; took: 0:00:00.000139
DEBUG: Importing rule: mkdir_p; took: 0:00:00.000139
DEBUG: Importing rule: mvn_no_command; took: 0:00:00.000131
DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000196
DEBUG: Importing rule: no_command; took: 0:00:00.000149
DEBUG: Importing rule: no_such_file; took: 0:00:00.000033
DEBUG: Importing rule: open; took: 0:00:00.000129
DEBUG: Importing rule: pacman; took: 0:00:00.000356
DEBUG: Importing rule: pacman_not_found; took: 0:00:00.000064
DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000215
DEBUG: Importing rule: python_command; took: 0:00:00.000152
DEBUG: Importing rule: python_execute; took: 0:00:00.000202
DEBUG: Importing rule: quotation_marks; took: 0:00:00.000027
DEBUG: Importing rule: rm_dir; took: 0:00:00.000192
DEBUG: Importing rule: rm_root; took: 0:00:00.000145
DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000138
DEBUG: Importing rule: sl_ls; took: 0:00:00.000027
DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000167
DEBUG: Importing rule: sudo; took: 0:00:00.000032
DEBUG: Importing rule: switch_lang; took: 0:00:00.000051
DEBUG: Importing rule: systemctl; took: 0:00:00.000357
DEBUG: Importing rule: test.py; took: 0:00:00.000046
DEBUG: Importing rule: tmux; took: 0:00:00.000139
DEBUG: Importing rule: touch; took: 0:00:00.000144
DEBUG: Importing rule: tsuru_login; took: 0:00:00.000224
DEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000138
DEBUG: Importing rule: unknown_command; took: 0:00:00.000034
DEBUG: Importing rule: vagrant_up; took: 0:00:00.000137
DEBUG: Importing rule: whois; took: 0:00:00.000196
DEBUG: Trying rule: dry; took: 0:00:00.000138
DEBUG: Trying rule: test.py; took: 0:00:00.000015
DEBUG: Trying rule: apt_get_search; took: 0:00:00.000288
DEBUG: Trying rule: brew_unknown_command; took: 0:00:00.000017
DEBUG: Trying rule: brew_upgrade; took: 0:00:00.000011
DEBUG: Trying rule: cargo; took: 0:00:00.000009
DEBUG: Trying rule: cargo_no_command; took: 0:00:00.000102
DEBUG: Trying rule: cd_correction; took: 0:00:00.000085
DEBUG: Trying rule: cd_mkdir; took: 0:00:00.000077
DEBUG: Trying rule: cd_parent; took: 0:00:00.000011
DEBUG: Trying rule: composer_not_command; took: 0:00:00.000080
DEBUG: Trying rule: dirty_unzip; took: 0:00:00.000118
DEBUG: Trying rule: django_south_ghost; took: 0:00:00.000033
DEBUG: Trying rule: django_south_merge; took: 0:00:00.000011
DEBUG: Trying rule: docker_not_command; took: 0:00:00.000136
DEBUG: Trying rule: fix_alt_space; took: 0:00:00.000037
DEBUG: Trying rule: fix_file; took: 0:00:00.000124
DEBUG: Trying rule: git_add; took: 0:00:00.000128
DEBUG: Trying rule: git_branch_delete; took: 0:00:00.000083
DEBUG: Trying rule: git_branch_list; took: 0:00:00.000087
DEBUG: Trying rule: git_checkout; took: 0:00:00.000081
DEBUG: Trying rule: git_diff_staged; took: 0:00:00.000090
DEBUG: Trying rule: git_fix_stash; took: 0:00:00.000106
DEBUG: Trying rule: git_not_command; took: 0:00:00.000096
DEBUG: Trying rule: git_pull; took: 0:00:00.000093
DEBUG: Trying rule: git_pull_clone; took: 0:00:00.000099
DEBUG: Trying rule: git_push; took: 0:00:00.000095
DEBUG: Trying rule: git_push_pull; took: 0:00:00.000094
DEBUG: Trying rule: git_stash; took: 0:00:00.000094
DEBUG: Trying rule: git_two_dashes; took: 0:00:00.000083
DEBUG: Trying rule: go_run; took: 0:00:00.000123
DEBUG: Trying rule: grep_recursive; took: 0:00:00.000162
DEBUG: Trying rule: gulp_not_task; took: 0:00:00.000109
DEBUG: Trying rule: has_exists_script; took: 0:00:00.000050
DEBUG: Trying rule: heroku_not_command; took: 0:00:00.000100
DEBUG: Trying rule: java; took: 0:00:00.000119
DEBUG: Trying rule: javac; took: 0:00:00.000106
DEBUG: Trying rule: lein_not_task; took: 0:00:00.000105
DEBUG: Trying rule: ls_lah; took: 0:00:00.000100
DEBUG: Trying rule: man; took: 0:00:00.000125
DEBUG: Trying rule: mercurial; took: 0:00:00.000107
DEBUG: Trying rule: mkdir_p; took: 0:00:00.000018
DEBUG: Trying rule: mvn_no_command; took: 0:00:00.000088
DEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000101
DEBUG: Trying rule: no_such_file; took: 0:00:00.000590
DEBUG: Trying rule: open; took: 0:00:00.000197
DEBUG: Trying rule: pip_unknown_command; took: 0:00:00.000109
DEBUG: Trying rule: python_command; took: 0:00:00.000032
DEBUG: Trying rule: python_execute; took: 0:00:00.000096
DEBUG: Trying rule: quotation_marks; took: 0:00:00.000012
DEBUG: Trying rule: rm_dir; took: 0:00:00.000028
DEBUG: Trying rule: sed_unterminated_s; took: 0:00:00.000082
DEBUG: Trying rule: sl_ls; took: 0:00:00.000011
DEBUG: Trying rule: ssh_known_hosts; took: 0:00:00.000080
DEBUG: Trying rule: sudo; took: 0:00:00.000049
DEBUG: Trying rule: switch_lang; took: 0:00:00.000033
DEBUG: Trying rule: systemctl; took: 0:00:00.000110
DEBUG: Trying rule: tmux; took: 0:00:00.000079
DEBUG: Trying rule: touch; took: 0:00:00.000080
DEBUG: Trying rule: tsuru_login; took: 0:00:00.000077
DEBUG: Trying rule: tsuru_not_command; took: 0:00:00.000074
DEBUG: Trying rule: unknown_command; took: 0:00:00.000323
DEBUG: Trying rule: vagrant_up; took: 0:00:00.000089
DEBUG: Trying rule: whois; took: 0:00:00.000084
DEBUG: Trying rule: man_no_space; took: 0:00:00.000012
DEBUG: Trying rule: no_command; took: 0:00:00.000029
/usr/share/thefuck/thefuck/rules/history.py:24: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  and line.split(' ')[0] in executables]
DEBUG: Trying rule: history; took: 0:00:00.578064
git push [enter/↑/↓/ctrl+c]
Aborted
DEBUG: Total took: 0:00:02.481053