From bfbf7821f478031bb6ca2f9a8a102f31ca76096a Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Thu, 19 Dec 2024 16:24:02 -0800 Subject: [PATCH] [git] add allbut alias https://ruby.social/@zenspider/113682145151048711 --- .gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitconfig b/.gitconfig index 3643c61..29881ef 100644 --- a/.gitconfig +++ b/.gitconfig @@ -51,6 +51,7 @@ fix = commit --fixup @ ctags = !.git/hooks/ctags lg = log --date=format:'%a %b %e, %Y' --pretty=format:'%C(yellow)%h%C(reset) %s %C(cyan)%cd%C(reset) %C(blue)%an%C(reset) %C(green)%d%C(reset)' --graph ; https://roadrunnertwice.dreamwidth.org/596185.html + allbut = "!function fn { git push --force-with-lease origin $(git rev-parse HEAD~${1:-1}):$(git branch --show-current); }; fn" [grep] extendRegexp = true lineNumber = true