Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Last active August 11, 2020 03:15
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 wolfeidau/35e83a3a0c097535d3b01fa85c25e6ae to your computer and use it in GitHub Desktop.
Save wolfeidau/35e83a3a0c097535d3b01fa85c25e6ae to your computer and use it in GitHub Desktop.
Git aliases I currently use
[alias]
amend = !git add -A && git commit --amend --no-edit
p = !git push origin $(git rev-parse --abbrev-ref HEAD)
c = "!git add -A && git commit -m "
cc = "!git commit --amend -m "
co = !git checkout
f = !git fetch --all && git rebase origin/master
authors = shortlog --summary --email --numbered
l = log --graph --pretty=format:'%Cred%h%Creset -%C(green)%d%Creset %s %C(yellow)(%cr) %C(blue)<%an>%Creset'
[core]
excludesfile = /home/markw/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment