-
-
Save danguilherme/2abb23af27519989b25e to your computer and use it in GitHub Desktop.
My git config
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
git config --global user.name "Guilherme Ventura" | |
git config --global user.email "[email protected]" | |
git config --global push.default simple | |
git config --global color.ui true | |
git config --global alias.s status | |
git config --global alias.c checkout | |
git config --global alias.co checkout | |
git config --global alias.cm "commit -m" | |
git config --global alias.b branch | |
git config --global alias.l "log --oneline --graph --decorate" | |
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" | |
# Erase local branches that are not in remote anymore (UNIX only) - https://stackoverflow.com/a/30494276/1574059 | |
git config --global alias.cleanup "git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -d" | |
git config --global merge.tool meld | |
git config --global mergetool.meld.cmd "meld $BASE $LOCAL $REMOTE $MERGED"" | |
git config --global mergetool.meld.trustExitCode false | |
git config --global diff.tool meld | |
git config --global difftool.meld.cmd "meld $LOCAL $REMOTE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment