Creating a modern Git installation
In this section, we'll configure Git in Windows 10 in a modern and secure way. In the past, Git didn't always run well on Windows 10; several third-party utilities were required to get everything working, and we often had to re-enter our password. That's changed since late 2018; now we can get a first class Git experience on Windows 10.
When using Git, and especially GitHub, we need to decide between HTTPS authentication versus SSH authentication. HTTPS authentication is easier to get started with, but SSH authentication has some workflow benefits. In this book, we will use SSH authentication, for the following reasons:
- It leads to a more streamlined workflow when combined with ssh-agent.
- It allows our workflow to be very similar between Windows 10, WSL2, and even macOS.
- HTTPS authentication uses the Windows Credential Manager. If we need to use SSH to connect to remote hosts, it's nice to manage all authentication...