Skip to content

Instantly share code, notes, and snippets.

@LightCC
LightCC / .gitconfig
Last active October 2, 2022 19:57
A starter .gitconfig file with some basic settings for developing cross-platform code in Windows, with VS Code as the primary IDE for diff/merge. **Note: This requires the VS Code `bin` directory to be on the path.**
[core]
editor = code --wait
autocrlf = input
safecrlf = false
longpaths = true
## Use the below for alternate diff algorithms, see '[diff "slx"]' section below
## This requires the line `*.slx diff=slx` in the referred `.gitattributes` file
# attributesfile = C:/Users/<username>/.gitattributes
[safe]
directory = "*" # Required for all WSL2 repos to work in Windows after Git 2.35.2