- Download git from https://gitforwindows.org/
- When you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.
- Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt).
- Run the following commands to configure your Git username and email using the following commands, replacing Emma's name and email with your own. These details will be associated with any commits that you create:
git config --global user.name "Emma Paris"
git config --global user.email "[email protected]"
- From your shell, install Git using apt-get:
sudo apt-get update
sudo apt-get install git
- Verify the installation was successful by typing git --version which should return the version number:
git --version
- Run the following commands to configure your Git username and email using the following commands, replacing Emma's name and email with your own. These details will be associated with any commits that you create:
git config --global user.name "Emma Paris"
git config --global user.email "[email protected]"
- From your shell, install Git using Homebrew:
brew install git
- Verify the installation was successful by typing git --version which should return the version number:
git --version
- Run the following commands to configure your Git username and email using the following commands, replacing Emma's name and email with your own. These details will be associated with any commits that you create:
git config --global user.name "Emma Paris"
git config --global user.email "[email protected]"
These commands have been taken from Atlassian's website.