Skip to content

Instantly share code, notes, and snippets.

@dviererbe
Last active October 26, 2021 13:43
Show Gist options
  • Save dviererbe/b33a8cb6f27ca7ba082e96ac01be43d0 to your computer and use it in GitHub Desktop.
Save dviererbe/b33a8cb6f27ca7ba082e96ac01be43d0 to your computer and use it in GitHub Desktop.
git config --global init.defaultBranch main
git config --global core.eol lf
git config --global core.autocrlf input
# Configure Identity & enable Commit-Signing by default
git config --global user.name Dominik Viererbe
git config --global user.email me@dviererbe.de
git config --global commit.gpgsign true
git config --global user.signingkey 2B14C68A4A739CB2AE243232964830C0D13518D5
# Configure VS Code as Git editor
git config --global core.editor "code --wait"
# Configure VS Code as Git diff tool
git config --global diff.tool "default-difftool"
git config --global difftool.default-difftool.cmd "code --wait --diff \$LOCAL \$REMOTE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment