When I start a git rebase -i, I can issue commands like git rebase --continue, or git rebase --abort. Those commands only work if a re
From a bash command line:
ls `git rev-parse --git-dir` | grep rebase
That will return exit code 0 (success) if there is a rebase folder, and it will output the rebase folder to STDOUT. If you are not in the middle of a rebase, then it will output nothing and return non-0 exit code. So you could even do something like this:
ls `git rev-parse --git-dir` | grep rebase || echo no rebase