Skip to content

Latest commit

 

History

History
66 lines (39 loc) · 2.47 KB

git.md

File metadata and controls

66 lines (39 loc) · 2.47 KB

Git

Git is a distributed version control system used to manage changes to text files.

Mac OS

On Mac OS, Git is part of the Xcode command line tools. To install them:

  1. Open a terminal.

  2. Type the following in the terminal:

xcode-select --install
  1. Test the installation

Windows

As part of installing git, install the gitbash command line environment so that the command line is consistent across Windows, OSX and Linux.

  1. Download git for windows.

  2. Click on the git installer (the .exe file) you downloaded to begin the installation.

git installation icon, looks like a tree branch inside 4 colored squares

  1. Click through the installation steps (keeping the defaults) until you reach the "Choosing the default editor used by Git" window. Select Visual Studio Code as the default editor. Click Next:

installation menu containing drop down of editor options: nano, vim, notepad++, visual studio code, visual studio code insiders

  1. Choose the "Use Git from the Windows Command Prompt" radio button and then click Next:

three radio buttons: use git from git bash, use git from windows command prompt, use git and optional unix tools from the windows command prompt

  1. Click through the next few installation windows using the defaults. On the configureing the terminal emulator to use with Git Bash window, choose the "Use Windows default console window" option:

two radio buttons: USe MinTTY, Use Windows default console window

  1. Click through the rest of the install, leaving the defaults, and then click Finish on the last window: final installation window that says "completing the git setup wizard"

  2. Test the installation

Test Install

Test that git is installed:

  1. Open a windows or OS/X terminal.

  2. Type the following into the terminal:

 git

The terminal should print something like:

usage: git [--version] [--help] [-C <path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]