I read that discussion about the content of "~/.gitconfig" on Linux: https://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain
I know some Mac specific optimizations, such as using "mate" as default editor:
[core]
editor = mate -w
or using opendiff as diff editor:
[diff]
external = opendiff
Do you know other Mac specific optimizations (and/or tools) that I could install/configure in "~/.gitconfig" file in order to get a very user-friendly git?
I use opendiff and textmate as external tools for git. You can configure them by running the following commands in bash:
#TextMate as the default editor
git config --global core.editor "mate -w"
#Opendiff (FileMerge) to resolve merge conflicts:
git config --global merge.tool opendiff
#Opendiff (FileMerge) as diff tool
git config --global diff.tool opendiff
Alternatively you can configure the gitconfig file by adding the following:
[diff]
tool = opendiff
[merge]
tool = opendiff
[core]
editor = mate -w
The difftool and mergetool is only available after version 1.6.3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With