Steps
1. Download Git
Go to https://git-scm.com and click “Download for Windows”.
2. Install
Key options during setup:
- Change the default branch name to
main - Select “Git from the command line and also from 3rd-party software”
3. Verify the Installation
git --version
4. Initial Configuration
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
Common Pitfalls
- Restart the terminal after installation
- Without setting
user.nameanduser.email, commits will throw an error - Set the default branch to
mainduring install (notmaster)
After installing Git, set up SSH authentication so you don’t need to enter a password every time. See Generate an SSH Key and Add It to GitHub.
Related Posts
- How to Push Your First Repository to GitHub
- How to Undo a Git Commit
- Git Branch Basics: Create and Switch Branches
- Generate an SSH Key and Add It to GitHub
Recommended Services
- Fiverr - Find freelance developers and tech experts