Before making your first commit, Git needs to know who you are. This identity gets attached to every change you save.


Install Git

Download Git from git-scm.com for Windows or macOS, or install it through your Linux package manager. Once installed, the git command becomes available in your terminal.

Set your identity

Configure your name and email once — Git attaches this information to every commit you ever make, so collaborators know who made each change.

Check your setup

Confirm Git installed correctly and review your configuration before you start working on a real project.

>_ COMMANDS YOU'LL USE
git --versionCheck that Git is installed correctly
git config --global user.name "Your Name"Set the name attached to your commits
git config --global user.email "[email protected]"Set the email attached to your commits
git config --global --listView your current Git configuration
💡Use --global so the settings apply to every repository on your machine, not just one project.
⚠️Common mistake: Skipping global config