git: Add git-abort & git-continue
I find typing `git {rebase,merge,...} --{continue,abort}` a bit
annoying, since it is a lot of typing. I have added an alias for `rebase
--continue` (grc), but the problem remained for the other commands.
Add a script that continues or aborts the ongoing process by detecting
it automatically.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
# the right directory, as shell commands in git aliases are executed
|
||||
# from the top-level directory of the repository.
|
||||
|
||||
abort = "!git-zsh-autoload abort"
|
||||
autosquash = -c sequence.editor=/bin/true rebase -i --autosquash
|
||||
autofixup= autosquash
|
||||
c = commit
|
||||
@@ -17,6 +18,7 @@
|
||||
cow = checkout-worktree
|
||||
co = checkout
|
||||
commit-last-msg = "!git-zsh-autoload commit-last-msg"
|
||||
continue = "!git-zsh-autoload continue"
|
||||
clm = commit-last-msg
|
||||
last-msg = commit-last-msg
|
||||
recommit = commit-last-msg --no-edit
|
||||
|
||||
Reference in New Issue
Block a user