Skip to content

Instantly share code, notes, and snippets.

@jpierson
Created April 24, 2017 09:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpierson/449264c0e21411322bbe517e0fb3eb7a to your computer and use it in GitHub Desktop.
Save jpierson/449264c0e21411322bbe517e0fb3eb7a to your computer and use it in GitHub Desktop.
Setup instructions for Git

Set the default editor (VSCode)

git config --global core.editor "code --wait"

See answer from rexcfnghk on StackOverflow for more details.

Set the default merge/diff tools (P4Merge)

git config --global merge.tool p4merge
git config --global mergetool.p4merge.path "C:/Program Files/Perforce/p4merge.exe"

Set user.name and user.email

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment