Setup Guide and verification checklist
Tested on: Git for Windows 2.27.0.windows.1
Note: If you are installing a newer version that has additional steps, leave those new steps at their default values.
Download the installation package from the Git official website.
If you are updating, uncheck the "Only show new options" checkbox in order to see all the installation steps.
Leave the default components as shown below.
If you leave the default option, Git will use the Bash default editor (based on the EDITOR
environment variable), which is Vim. Vim can be hard to use and unintuitive compared to modern editors.
The Git core.editor
option will remain unset, but this can be modified later on in your personal configuration.
Recommended: Select here one of your favorite editors which you already have installed on your system.
Recommended: Select the option "Git from the command line and also from 3rd-party software".
Leave the default option "Use the OpenSSL library".
Recommended: Select the option "Checkout as-is, commit Unix-style line endings". With this option we ensure that we always have LF
line endings inside the repository.
Don't overcomplicate things by forcing Git to convert line endings. All modern Windows code editors work with Unix-style LF
line endings. Also, there are development tools that rely on LF
line endings to work properly (npm scripts, linters, etc...).
TIP: If you use file types that explicitly require CRLF
line endings, specify them in a .gitattributes
file.
Reference reading:
- https://jessitron.com/2019/11/11/line-endings-in-git/
- https://markoskon.com/line-endings-in-vscode-with-git-and-eslint/
Leave the default option as shown below.
Leave the default option as shown below.
Leave the default options as shown below.
Don't select any experimental feature, as shown below.
Congratulations! You've completed the installation. Now let's verify that everything works correctly.
In the Windows context menu you should see two new options, one of which is "Git Bash Here".
Check that the git
command was added to the PATH environment variable. This way external tools can use our installed Git version.
Run git --version
in CMD and PowerShell.