浏览代码

Alias for commit and commit all with amend

For the lazy and forgetful. Don't worry, a bang is fine in an alias and completion.

:tada:
Ben Marshall-Corser 12 年之前
父节点
当前提交
f7f487c426
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      plugins/git/git.plugin.zsh

+ 5 - 1
plugins/git/git.plugin.zsh

@@ -14,8 +14,12 @@ gdv() { git diff -w "$@" | view - }
 compdef _git gdv=git-diff
 alias gc='git commit -v'
 compdef _git gc=git-commit
+alias gc!='git commit -v --amend'
+compdef _git gc!=git-commit
 alias gca='git commit -v -a'
-compdef _git gca=git-commit
+compdef _git gc=git-commit
+alias gca!='git commit -v -a --amend'
+compdef _git gca!=git-commit
 alias gco='git checkout'
 compdef _git gco=git-checkout
 alias gcm='git checkout master'