Skip to content

Instantly share code, notes, and snippets.

@rkeithhill
Last active November 29, 2019 18:35
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 rkeithhill/5ca427397726770acbce53d3dd599197 to your computer and use it in GitHub Desktop.
Save rkeithhill/5ca427397726770acbce53d3dd599197 to your computer and use it in GitHub Desktop.
Config file for Git
# More gitconfig goodness here - https://gist.github.com/tdd/470582
git config --global user.name "Keith Hill"
git config --global user.email <email here>
git config --global core.editor '\"C:\Program Files (x86)\Microsoft VS Code\bin\code.cmd\" --new-window --wait'
git config --global core.autocrlf true
git config --global pull.ff only
git config --global pull.rebase true
git config --global rebase.autoStash true
git config --global diff.tool vscode
git config --global difftool.vscode.cmd '\"C:\Program Files (x86)\Microsoft VS Code\bin\code.cmd\" --new-window --diff \"$LOCAL\" \"$REMOTE\"'
git config --global difftool.prompt false
git config --global merge.tool vscode
git config --global mergetool.vscode.cmd '\"C:\Program Files (x86)\Microsoft VS Code\bin\code.cmd\" --new-window --wait --diff \"$LOCAL\" \"$REMOTE\"'
git config --global status.submoduleSummary true
git config --global diff.submodule log
git config --global -l
git config -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment