Git is a distributed version control software system used by almost all modern software projects. It enables version-management and collaborative work on the same project by enabling users to push and pull changes to/from a shared repository.
You can test the availability of git by running git --version on the command line.
The output will either be the currently installed version of Git or some error like Command not found.
git --version
> git version 2.51.0
Please install Git using the built-in Windows package manager winget within the Windows Terminal.
winget install Git.Git
Alternatively, you can download the installer from gitforwindows.org
If not already done, please install and use Homebrew as a package manager for macOS.
After Homebrew is installed, you can install Git by running the following command:
brew install git
Please install Git using your distribution's package manager.
sudo apt install git # Debian, Ubuntu, Linux Mint
sudo pacman -S git # Arch
sudo dnf install git # Fedora
After installing Git, you need to set a name and email address for commit messages:
git config --global user.name "<YOUR NAME>"
git config --global user.email "<YOUR.NAME>@mailbox.tu-dresden.de"