Ohmyzsh: git rebase -i not working

Created on 1 Feb 2016  路  1Comment  路  Source: ohmyzsh/ohmyzsh

git rebase -i [commit id]^ not working on zsh and it is working fine on bash.

Most helpful comment

That's because you have the extended_glob option enabled, which makes zsh interpret ^, * and some other character symbols as globbing flags: basically, zsh interprets you want files, so it's probably giving you a no matches found error.

To disable that behavior for git (and other commands that use these symbols) you can put the word noglob before the command, or wrap the symbols within quotes: noglob git rebase -i [commit id]^ or git rebase -i '[commit id]^'.

You can also make a git alias with noglob to avoid having to do the above each time you use git: alias git='noglob git'.

>All comments

That's because you have the extended_glob option enabled, which makes zsh interpret ^, * and some other character symbols as globbing flags: basically, zsh interprets you want files, so it's probably giving you a no matches found error.

To disable that behavior for git (and other commands that use these symbols) you can put the word noglob before the command, or wrap the symbols within quotes: noglob git rebase -i [commit id]^ or git rebase -i '[commit id]^'.

You can also make a git alias with noglob to avoid having to do the above each time you use git: alias git='noglob git'.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ensonik picture ensonik  路  3Comments

victorsenam picture victorsenam  路  3Comments

2Dou picture 2Dou  路  3Comments

jaredmoody picture jaredmoody  路  3Comments

Cabbagec picture Cabbagec  路  3Comments