Created
February 28, 2019 09:39
-
-
Save renatodeleao/871b86948a3755a473bc9521c654e43f to your computer and use it in GitHub Desktop.
Git alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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