If you want Git on Windows without crafting a sacrificial script or summoning tech support, this guide gets you up and running fast. No hand holding, just the right choices so your commits do not look like anonymous scribbles from a haunted keyboard.
Always grab Git from the source that does not surprise you. Head to git-scm.com and choose the Windows installer that matches your CPU, 64 bit or 32 bit. That avoids weird forks and the kind of surprises only a debugger can love.
If you do not set your name and email your commits will look like a ghost wrote them. Do this once in Git Bash or a terminal and stop fretting.
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
Then confirm Git is installed and see the current settings with these commands.
git --version
git config --list
If you like Unix like commands, use Git Bash. If your life is PowerShell and you like it that way, pick the integration option. Either is fine as long as you stop switching mid project and causing merge nightmares.
When prompted about line endings choose the option that matches your team. Wrong settings will not explode your laptop but they will fill your diffs with pointless changes and ruin your Tuesday.
If you plan to push to remotes like GitHub GitLab Bitbucket or AWS CodeCommit you should create an SSH key and add the public part to your account. Modern practice is to prefer ed25519 keys for a good mix of security and convenience.
ssh-keygen -t ed25519 -C "you@example.com"
# then copy the contents of ~/.ssh/id_ed25519.pub into your account settings
Paste that public key into the SSH keys section of your Git host. That is GitHub or GitLab or Bitbucket or CodeCommit. Yes you will have to click something. Yes you will be glad later.
If you like buttons and diagrams try a GUI client. Options include GitKraken GitHub Desktop and Sourcetree. GUIs are handy for visualizing branches and merges but the command line will save you when things get complicated.
Follow these steps and you will have a working Git installation on Windows ready for cloning committing and pushing code to remote repositories. It will not make you a Git wizard overnight but it will stop Git from being the thing that ruins your build pipeline.
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.