Git: Add unstage and modify commit* aliases

Also add a coops because I found that I use it quite often.
This commit is contained in:
hedy 2022-03-29 12:23:09 +08:00
parent 6c453aaccd
commit 08c5e1e6de
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
1 changed files with 5 additions and 3 deletions

View File

@ -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