Installing Git
Before we can use Git, we need to install it on our computer. The installation process is straightforward on all major operating systems.
Installing Git on Windows
1. Download the installer from git-scm.com/download/win.
2. Run the downloaded .exe file.
3. Follow the installation wizard. You can leave most options as default.
4. After installation, open Git Bash from the Start Menu. This is a terminal that gives you Git commands.
5. Verify the installation by typing:
git --versionYou should see something like git version 2.40.0.windows.1.Installing Git on macOS
Option 1: Using Homebrew
If you have Homebrew installed, open Terminal and run:
brew install gitOption 2: Installer
Download from git-scm.com/download/mac and run the package.
Verify with
git --version.Installing Git on Linux (Ubuntu/Debian)
Open a terminal and run:
sudo apt update
sudo apt install gitVerify with
git --version.What We Just Installed
Git comes with several tools:
- Git Bash (Windows): A terminal that emulates Linux commands and includes Git.
- Git GUI: A graphical interface (though we’ll focus on the command line).
- Git commands: The actual programs like
git add,git commit, etc.
Two Minute Drill
- Download Git from git-scm.com.
- On Windows, use Git Bash after installation.
- On macOS, use Homebrew or the installer.
- On Linux (Ubuntu), use
sudo apt install git. - Verify installation with
git --version.
Need more clarification?
Drop us an email at career@quipoinfotech.com
