Update git aliases

This commit is contained in:
Trevor Vallender 2023-05-16 20:50:20 +01:00
parent 4791ba6a48
commit 801275da2d
1 changed files with 6 additions and 5 deletions

View File

@ -15,16 +15,17 @@
aa = add -A aa = add -A
ap = add --patch ap = add --patch
aap = !git add --intent-to-add . && git add --patch aap = !git add --intent-to-add . && git add --patch
br = branch
co = checkout co = checkout
cm = commit cm = commit
st = status cma = commit --amend
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
last = log -1 HEAD last = log -1 HEAD
unstage = restore --staged pf = push --force
pushup = !git push -u origin $(git symbolic-ref --short HEAD) pushup = !git push -u origin $(git symbolic-ref --short HEAD)
rbd = rebase develop
rbi = rebase -i # Useful for squashing commits
st = status
tree = log --oneline --graph --decorate --all tree = log --oneline --graph --decorate --all
undo-commit = reset --soft HEAD~ undo-commit = reset --soft HEAD~
[init] [init]