瀏覽代碼

git: add some more aliases

Thomas Dy 2 年之前
父節點
當前提交
9780ac24e6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .config/git/config

+ 2 - 0
.config/git/config

@@ -36,5 +36,7 @@
 	ca = commit --amend
 	smash = "!git add -u && git ca --no-edit && git pof"
 	reset-head = remote set-head origin -a
+	ff-head = "!git push . origin/HEAD:$(git head)"
 	head = for-each-ref --format="%(symref:lstrip=-1)" refs/remotes/origin/HEAD
 	sh = "!git switch $(git head)"
+	prune-local = "!git branch --merged origin/HEAD | grep -v $(git head) | xargs git branch -d"