Can gitconfig options be set conditionally?
问题 Via Github I use the same set of "dot files" on several different computers and servers. On the Macs and Linux boxes under my direct control I have Sublime Text 2 installed and set up as my git merge and commit editor of choice. However, on remote (i.e., not under my direct control) servers I would select to use vim. I would rather not create and maintain a second .gitconfig for those remote servers. Is there a way to do something like this: [core] if [[ $IS_REMOTE -eq 1 ]]; then editor =