Skip to content

Instantly share code, notes, and snippets.

@vincelee888
Last active May 16, 2022 15:49
Show Gist options
  • Save vincelee888/535de8f5e662a59762c952f175407305 to your computer and use it in GitHub Desktop.
Save vincelee888/535de8f5e662a59762c952f175407305 to your computer and use it in GitHub Desktop.
[user]
name = vince
email = vince@
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
co = checkout
br = branch
ci = commit
st = status
unstage = reset HEAD --
last = log -1 HEAD
up = pull --rebase
save = !git add -A && git commit -m SAVEPOINT --no-verify
unsave = !git reset HEAD~1
bin = !git add -A && git checkout -f
park = !git checkout -b 'parked' && git add -A && git commit -m 'parked' --no-verify
unpark = !git merge parked && git branch -d parked && git reset HEAD~1
tidylocal = !git branch | grep -v -E 'master|main|trunk' | xargs git branch -D
[init]
defaultBranch = trunk
@vincelee888
Copy link
Author

git aliases, some courtesy of @garymcleanhall

@vincelee888
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment