Installing Git on Windows 10 does not have to be a dramatic saga. This short guide will get Git for Windows installed, configured, and talking to your remote repos without making you sacrifice a keyboard. Expect guidance on the installer options, git config, SSH keys, Git Bash, and a few survival tips for version control on Windows.
Head to the Git for Windows website and grab the 64 bit installer unless you have a very compelling reason to pick the 32 bit build. Save the installer somewhere sensible like your Downloads folder so you can find it later when procrastination kicks in.
Launch the downloaded installer and follow the prompts. The defaults are fine for most people but these options deserve a moment of attention.
Git needs to know who you are so your commits do not look like they were made by a mysterious internet ghost. Run these commands in Git Bash or Command Prompt.
git config --global user.name 'Your Name'
git config --global user.email 'you@example.com'
# set a preferred editor for commits
git config --global core.editor 'code --wait'
# choose line ending handling for shared projects
git config --global core.autocrlf true
Check Git is installed with a single command and then set up SSH keys so you can push without typing your password into a void.
git --version
# generate an ed25519 key for modern security
ssh-keygen -t ed25519 -C 'you@example.com'
# start the ssh agent and add your key
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
# copy the public key and paste it into your hosting service account
cat ~/.ssh/id_ed25519.pub
After adding the public key to GitHub GitLab or Bitbucket test a connection with ssh -T git@github.com or the equivalent for your host.
Use Git Bash for a friendlier terminal and keep the credential manager enabled so you do not type your password every five minutes. If you prefer GUI tools try Git GUI or Git clients from your host but know that the command line remains the universal remote for version control.
There you go a functional Git environment on Windows 10 with identity set up and optional SSH based authentication. You can now clone fork commit and push without unnecessary drama. If things still go wrong come back here and read the checklist while consuming your beverage of choice.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.