Skip to content

ohglobal/GitTrainingLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Introduction

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.

Prerequisites

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

Mac OS

Option 1

Install Git using a GUI
  1. Open a browser and navigate to Git's official installer download site. https://sourceforge.net/projects/git-osx-installer/

  2. Download the latest version of the Git installer file.

  3. Follow the installation prompts to install Git. The default settings are usually sufficient for most users.

Option 2

Install Git using Xcode
  1. Open your terminal window and enter the following command:
xcode-select --install
  1. 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

Option 3 (Preferred)

Install Git using Homebrew

Homebrew is a great Package Manager for MacOS/Linux that makes installing software easier.

  1. If you don't already have Homebrew installed, go to the Homebrew website https://brew.sh/ and follow the installation instructions.

  2. Open your terminal window and enter the following command:

brew install git
  1. 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

Windows

Option 1

Install Git using a GUI
  1. Open a browser and navigate to Git's official installer download site. https://github.com/git-for-windows/git/releases

  2. Download the latest version of the Git installer file.

  3. Follow the installation prompts to install Git. The default settings are usually sufficient for most users.

Option 2

Install Git using Homebrew on Windows Subsystem for Linux (WSL)

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).

  1. If you don't already have Homebrew installed, go to the Homebrew website https://brew.sh/ and follow the installation instructions.

  2. Open your command line window and enter the following command:

brew install git
  1. 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

Option 3

Install Git using Chocolatey

Chocolatey is a great Package Manager for Windows that makes installing software easier.

  1. If you don't already have Chocolatey installed, go to the Chocolatey website https://chocolatey.org/ and follow the installation instructions.

  2. Open your command line window and enter the following command:

choco install git
  1. 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

Linux

Debian/Ubuntu

Option 1

Install Git using apt-get
  1. From your shell, enter the following command:
sudo apt-get update
sudo apt-get install git
  1. 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

Option 2

Install Git using Homebrew

Homebrew is a great Package Manager for MacOS/Linux that makes installing software easier.

  1. If you don't already have Homebrew installed, go to the Homebrew website https://brew.sh/ and follow the installation instructions.

  2. Open your terminal window and enter the following command:

brew install git
  1. 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

Fedora/CentOS

Option 1

Install Git using apt-get
  1. From your shell, enter the following command:
sudo dnf install git

or

sudo yum install git
  1. 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

Option 2

Install Git using Homebrew

Homebrew is a great Package Manager for MacOS/Linux that makes installing software easier.

  1. If you don't already have Homebrew installed, go to the Homebrew website https://brew.sh/ and follow the installation instructions.

  2. Open your terminal window and enter the following command:

brew install git
  1. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published