Last active
September 15, 2022 01:10
-
-
Save tacsio/898911 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 "Tarcisio Coutinho" | |
git config --global user.email "[email protected]" | |
git config --global color.ui true | |
git config --global alias.s status | |
git config --global alias.c checkout | |
git config --global alias.b branch | |
git config --global alias.lol log --oneline --graph --decorate | |
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' |
Thanks a lot, it works!
For linux I needed to double quote the variables, my ~/.gitconfig
looked something like
[merge]
tool = meld
[mergetool "meld"]
cmd = meld "$BASE $LOCAL $REMOTE $MERGED"
trustExitCode = false
[diff]
tool = meld
[difftool "meld"]
cmd = meld "$LOCAL $REMOTE"
Nice!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windows merge tool config: (meld.exe needs to be on PATH)
git config --global merge.tool meld
git config --global mergetool.meld.cmd 'meld.exe "$BASE" "$LOCAL" "$REMOTE" "$MERGED"'
git config --global diff.tool meld
git config --global difftool.meld.cmd 'meld.exe "$LOCAL" "$REMOTE"'