Git: Mac/Linux
Task 1 - Download and install Git
- Open a terminal window
- Run the following command to install Git:
sudo apt-get install git
- (for Debian/Ubuntu-based systems) or
brew install git
- (for macOS)
Task 2 - Configure Git
- Open a terminal window
- Run the following commands to configure Git with your name (your real name, e.g. “Denise Case”) and the email address you used for GitHub.
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
- Important: Replace “Your Name” with your name and “your.email@example.com” with the email address associated with your GitHub account
- This configuration will be used for all of your Git repositories
Task 3 - Verify
- Run the following command to verify your Git configuration:
git config --list
- You should see your name and email address listed under the “user” section
- If the information is not correct, you can run the
git config
command again to update it