浏览代码

Added --force-with-lease method (#5025)

Jonathan Channon 7 年之前
父节点
当前提交
5486aa21eb
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      plugins/git/git.plugin.zsh

+ 4 - 0
plugins/git/git.plugin.zsh

@@ -107,6 +107,10 @@ ggf() {
   [[ "$#" != 1 ]] && local b="$(git_current_branch)"
   git push --force origin "${b:=$1}"
 }
+ggfl() {
+[[ "$#" != 1 ]] && local b="$(git_current_branch)"
+git push --force-with-lease origin "${b:=$1}"
+}
 compdef _git ggf=git-checkout
 
 ggl() {