Installing Git for Windows isn’t terribly complex but there are a few options that can be confusing. Here is the usual process I perform when installing Git along with some (hopefully helpful) commentary along the way.
- Download Git for Windows from git-scm.com.
- Launch the downloaded setup file.
- Review the license for the software. (Next)
- It utilizes GPLv2, a well-known and respected open source license.
- Note that the GPLv2 applies to the Git software and not to separate software you may create.
- Choose a destination to install Git, the default usually works fine: C:\Program Files\Git. (Next)
- Select the Git Components you want to install. (Next)
- Windows Explorer integration is always nice.
- Large File Support is a might as well.
- Associate .git* files with the default Windows editor.
- Associate .sh files with Git’s Bash.
- Check daily for Git for Windows updates.
- You can select additional icons, use truetype font if desired.
- Leave Start Menu Folder as Git. (Next)
- Choose the default editor Git will utilize. (Next)
nano
is a nice, minimalistic, command-line text editor.- Recommend against using
Vim
unless you are already familiar with it. - Recommend Visual Studio Code if you already use it (or have no current preference).
- If you are an Atom, Sublime, VSCodium, etc. user use these.
- Notepad works.
- Do not use Wordpad!
- Choose to override the default branch name for new repositories, enter main. (Next)
- Use Git from the command line and 3rd-party software. (Next)
- You can use Git from Git Bash only if security is extremely important for your projects.
- Do not recommend using Git and Unix tools from Command Prompt.
- Use the OpenSSL library. (Next)
- Could use Windows Secure Channel library, but I prefer to use what most *nix instances will be using to decrease the difference between using Windows and *nix Git.
- Reducing differences between Windows and *nix installs can help simplify troubleshooting. Unless there is a significant advantage to using the Windows-specific option I opt for the cross-platform option with all cross-platform software.
- Checkout as-is, commit with Unix-style line endings. (Next)
- CRLF stands for “carriage-return” and “line feed” respectively.
- Windows uses CRLF in it’s text files, *nix systems use LF.
- To avoid having line endings swapping back and forth every time someone is using a different OS, standardize on LF.
- Use Mintty as the terminal emulator. (Next)
- Otherwise one would use Windows’ cmd.exe which is more limited.
- Use the Default (fast-forward or merge) unless you have good reason to do otherwise. (Next)
- Use the newer Git Credential Manager Core, not Git Credential Manager. (Next)
- Enable file system caching, leave symbolic links unchecked unless specific use case requires. (Next)
- Do not enable experimental support for pseudo consoles, it isn’t stable. (Next)
- The installer will perform the installation.
- If desired you can launch Git Bash or view the release notes. (Finish)