fix: add git alias

This commit is contained in:
2024-06-11 17:53:43 +08:00
parent 7bb20c64e2
commit a9f48d2d59
2 changed files with 27 additions and 20 deletions
+1
View File
@@ -40,6 +40,7 @@
bn = branch --no-merged
pl = pull
pt = push origin --tags
ph = push origin HEAD
merge2 = !sh -c '_CURRENT_BRANCH=$(git symbolic-ref --short HEAD) && git checkout $1 && git merge $_CURRENT_BRANCH && git checkout $_CURRENT_BRANCH' -
bg = "!f() { git branch | grep $1; }; f"
delbr = "!f(){ git branch -D $(git branch | grep \"\b$1\"); };f"