-
Notifications
You must be signed in to change notification settings - Fork 1
Git General Prerequisites
Kenneth Kasajian edited this page Mar 20, 2015
·
33 revisions
- Install Git
-
Introduce yourself:
git config --global user.name "Your Name Comes Here" git config --global user.email [email protected]
-
Set up Editor. Pick your favorite:
-
OS X:
git config --global --add core.editor "open -W -e -n"
-
Windows:
git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
or
git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
-
Generic:
`git config --global core.editor 'vim'` or `git config --global core.editor emacs`
-
Set up merge tool:
git config --global diff.tool winmerge git config --global difftool.prompt false git config --global difftool.winmerge.cmd "WinMergeU.exe -r -u -e -dl Local -dr Remote \"$LOCAL\" \"$REMOTE\"" git config --global merge.tool winmerge git config --global mergetool.prompt false git config --global mergetool.winmerge.trustExitCode true git config --global mergetool.winmerge.cmd "WinMergeU.exe -r -u -e -dl Local -dr Remote \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
-
Color Options:
git config --global color.diff auto git config --global color.status auto git config --global color.branch auto