Skip to content

Instantly share code, notes, and snippets.

@renatodeleao
Created February 28, 2019 09:39
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 renatodeleao/871b86948a3755a473bc9521c654e43f to your computer and use it in GitHub Desktop.
Save renatodeleao/871b86948a3755a473bc9521c654e43f to your computer and use it in GitHub Desktop.
Git alias
[alias]
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
fixup = "!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ${@:2} && EDITOR=true git rebase -i --autostash --autosquash $TARGET^; }; f"
[log]
abbrevCommit = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment