This project is a Git training lab built specifically for the Office Hours Community. This material is tailored to new members who have little or no knowledge of how Git is used in a software development environment and Office Hours contributors who plan to develop software for Office Hours projects with fellow cohorts.
In order to go through this lab, there are a few requirements needed to complete the lab.
- Access to the command line/terminal window
- Git
- Github login credentials
-
Open a browser and navigate to Git's official installer download site. https://sourceforge.net/projects/git-osx-installer/
-
Download the latest version of the Git installer file.
-
Follow the installation prompts to install Git. The default settings are usually sufficient for most users.
- Open your terminal window and enter the following command:
xcode-select --install
- Once the installation has completed, you can verify success using the following command:
git --version
The resulting output will look similar to the following.
git version 2.34.1
Homebrew is a great Package Manager for MacOS/Linux that makes installing software easier.
-
If you don't already have Homebrew installed, go to the Homebrew website https://brew.sh/ and follow the installation instructions.
-
Open your terminal window and enter the following command:
brew install git
- Once the installation has completed, you can verify success using the following command:
git --version
The resulting output will look similar to the following.
git version 2.34.1
-
Open a browser and navigate to Git's official installer download site. https://github.com/git-for-windows/git/releases
-
Download the latest version of the Git installer file.
-
Follow the installation prompts to install Git. The default settings are usually sufficient for most users.
Homebrew is a great Package Manager for MacOS/Linux that makes installing software easier. Developers also use Homebrew on Windows on top of Windows Subsystem for Linux (WSL).
-
If you don't already have Homebrew installed, go to the Homebrew website https://brew.sh/ and follow the installation instructions.
-
Open your command line window and enter the following command:
brew install git
- Once the installation has completed, you can verify success using the following command:
git --version
The resulting output will look similar to the following.
git version 2.34.1
Chocolatey is a great Package Manager for Windows that makes installing software easier.
-
If you don't already have Chocolatey installed, go to the Chocolatey website https://chocolatey.org/ and follow the installation instructions.
-
Open your command line window and enter the following command:
choco install git
- Once the installation has completed, you can verify success using the following command:
git --version
The resulting output will look similar to the following.
git version 2.34.1
- From your shell, enter the following command:
sudo apt-get update
sudo apt-get install git
- Once the installation has completed, you can verify success using the following command:
git --version
The resulting output will look similar to the following.
git version 2.34.1
Homebrew is a great Package Manager for MacOS/Linux that makes installing software easier.
-
If you don't already have Homebrew installed, go to the Homebrew website https://brew.sh/ and follow the installation instructions.
-
Open your terminal window and enter the following command:
brew install git
- Once the installation has completed, you can verify success using the following command:
git --version
The resulting output will look similar to the following.
git version 2.34.1
- From your shell, enter the following command:
sudo dnf install git
or
sudo yum install git
- Once the installation has completed, you can verify success using the following command:
git --version
The resulting output will look similar to the following.
git version 2.34.1
Homebrew is a great Package Manager for MacOS/Linux that makes installing software easier.
-
If you don't already have Homebrew installed, go to the Homebrew website https://brew.sh/ and follow the installation instructions.
-
Open your terminal window and enter the following command:
brew install git
- Once the installation has completed, you can verify success using the following command:
git --version
The resulting output will look similar to the following.
git version 2.34.1