Git is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers who are collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different computers).
Since its creation, Git has become the most popular distributed version control system, with nearly 95% of developers reporting it as their primary version control system as of 2022.
There are many guides on how to install and configure Git on a Windows PC. As I test new developer laptops for Wehkamp, it makes sense to have some notes on how to do it. Most Windows developers use git HTTPS cloning, but this guide shows how to install and configure SSH.
I’m working on a project that turns GitOps data into APIs using Bash, JQ, and YQ. After reviewing GitHub connection options, I found SSH works best for local development, while GitHub App tokens are ideal for containers. Here’s how to use Bash to authenticate with the GitHub CLI and clone repositories using either method.
Let’s setup commit verification using GPG on Windows. This will prompt us to sign the commit. I will be using a passphrase instead of signing the commits with my SSH token. This gives an extra layer of security to the setup.