Setup/Installation
To start using Git, you first need to install it on your computer. Here’s a simple guide on how to do it for different operating systems.
Windows
- Download Git: Go to the Git website and download the latest version for Windows. You can find it here: Git for Windows.
- Install Git: Open the downloaded file and follow the instructions to install Git on your computer.
- Optional: If you have the winget tool (a package manager for Windows), you can install Git by running this command in Command Prompt or PowerShell:
winget install --id Git.Git -e --source winget
Linux
The installation process can be different depending on the type of Linux distribution you’re using.
- For Ubuntu or Debian: Open the terminal and run the following command to install Git:
sudo apt install git
- For Fedora or CentOS: Open the terminal and run this command:
sudo dnf install git
MacOS
Download Git: Visit the Git website to download the installer for MacOS. You can find it here: Git for MacOS.
Install Git: Open the downloaded file and follow the steps to install Git on your Mac.
This guide should help you get Git up and running on your computer, no matter what operating system you're using. Once installed, you'll be ready to start managing your code with Git!