Install Git on Windows
To install Git on Windows, visit the following link (you will be prompted to download the application automatically):
For the most part, you can accept the default values at each step of the installation process. After you’re done, you’ll have a few applications installed on your computer: Git Bash, Git GUI, and Git CMD. The lessons here on Simple Dev will focus on the commands for Git Bash.
Install Git on macOS
If you’ve installed Xcode on macOS through the App Store, you should have Git installed as well (Xcode is an IDE for developing apps for Apple products). Also, if you’ve installed just the Xcode Command Line Tools instead of the full Xcode IDE, you should also have Git installed.
To check if you have Git installed, enter the following command in your terminal:
If it’s not installed already, you will be prompted to install the Xcode Command Line Tools, which comes with Git.
Try installing Git on your computer.
Installing Git from the Pro Git book