From 08c5e1e6def2dbba36a13887ea711f1c60f07717 Mon Sep 17 00:00:00 2001 From: hedy Date: Tue, 29 Mar 2022 12:23:09 +0800 Subject: [PATCH] Git: Add unstage and modify commit* aliases Also add a coops because I found that I use it quite often. --- .gitconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitconfig b/.gitconfig index db8a880..02c9d29 100644 --- a/.gitconfig +++ b/.gitconfig @@ -18,6 +18,7 @@ c = commit b = branch a = add + unadd = restore --staged ls-alias = config --get-regexp alias l = log --oneline ll = log @@ -29,9 +30,10 @@ brd = branch -d fame = !python3 -m gitfame p = push - cmam = commit -am # rarely used; cmav and cmv are now my best friends :> - cmav = commit -av - cmv = commit -v + cam = commit -am # rarely used; cav and cv are now my best friends :> + cav = commit -av + cv = commit -v + coops = commit --amend --no-edit # commit... oops! pushall = !git remote | xargs -L1 git push --all # Same as pushall but not for all branches pall = !git remote | xargs -L1 git push