Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SonicZentropy/b112711d79ffa6311a0ed2c5488c2669 to your computer and use it in GitHub Desktop.
Save SonicZentropy/b112711d79ffa6311a0ed2c5488c2669 to your computer and use it in GitHub Desktop.
global .gitconfig
[alias]
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
ls = log --oneline
amend = commit -a --amend -C HEAD
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
ci = commit
co = checkout
cm = !git add . && git commit -a -m '$1' && git push && :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment