Installing Git
Git is software for tracking changes in any set of files (also known as a "version control" software), usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different systems).
Let's see how to install Git on different platforms.
Windows
On Windows, Git can be installed via:
Linux
On Linux, Git is probably already installed in your distribution's repository. If not, you can install it via Git for Linux. You can also install it via the built-in package manager on your Linux distro.
Mac
You can install Git for your macOS computer via Git for Mac. Alternatively, it can be also be installed from the Xcode Command Line Tools by installing Xcode from the App Store, or by running this:
xcode-select --install
Using Package Managers
You can also install Git using package managers.
Chocolatey
If you use the Chocolatey package manager, you can install Git using:
choco install git
Scoop
If you use Scoop, you can install Git using:
scoop install git
Brew
If you're on macOS or Linux, you can install Git using:
brew install git