Setting up Git
Git is a version control system that helps you track changes in your code.
Windows Installation
- Download Git from git-scm.com
- Run the installer
- Use the following recommended settings:
- Use Git from Git Bash only
- Use the OpenSSL library
- Checkout Windows-style, commit Unix-style line endings
- Use MinTTY
- Enable file system caching
Mac Installation
- Open Terminal
- Run
xcode-select --install
- Follow the prompts to install Git
Configuration
After installation, open Terminal (Mac) or Git Bash (Windows) and run:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"