Skip to content

Git

Install

Windows

choco feature enable -n=useRememberedArgumentsForUpgrades
choco install -y git.install --params "'/NoShellIntegration'"

Ubuntu

sudo add-apt-repository -y ppa:git-core/ppa
sudo apt update && sudo apt install -y git git-lfs

Settings

LF line endings

Let Windows use LF end of line:

# Default is true on Windows machines
git config --global core.autocrlf input

You might want to add a <repo>/.gitattributes file in the repo to enforce the setting.

.gitattributes
* text=auto eol=lf

Apply the changes

git add --renormalize .

Comments