Installing Git

Beginner 10 min read Lesson 4 of 4

Git is the version control system nearly every professional C# team uses. You'll need it for the Project Workflow module and for deployment later.

What is Version Control?

Version control tracks changes to your code over time. It lets you go back to previous versions, work with teams, and experiment safely.

Step 1 — Download Git

Go to git-scm.com and download the installer for your OS.

Step 2 — Install with default options

The defaults are fine for beginners. Keep "Git from the command line and also from 3rd-party software" selected, and leave the default branch name as main.

Step 3 — Configure your identity

Open a terminal (or Git Bash) and run:

git config --global user.name "Your Name"
git config --global user.email "you@example.com"


                

Step 4 — Verify

git --version

You should see a version number printed. You're ready to start coding.

Key Takeaway

Git is the industry standard for version control. Set it up once and you're ready for all your C# projects.