Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
126 lines (73 sloc) 5.12 KB

Git

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

OS/X

On OS/X, 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 install

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: https://git-scm.com/download/win

  2. Click on the git installer:

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

  1. Accept the license and click Next:

license acceptance window

  1. Select the installation folder, default is fine. Click Next:

installation folder browser with text window showing folder path

  1. Select the components to be installed, the default is fine:

list of check boxes showing install options: additional icons, on the desktop, Windows Explorer integration, Git Bash, Git GUI, Git LFS, Associate *.git configuration files with the default text editor, associate .sh files to be run with bash,  use a true type font in all console windows, check daily for git for windows, check daily for git console updates

  • Windows Only: select start menu folder (default is fine):

textbox with browse button listing start menu folder options

  1. Choose the default editor used by Git. Select Visual Studio Code as the default editor. (Note that you must install Visual Studio Code first before you can move forward past this step of the Git install.) 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. Choose the HTTPS transport backend (the default is fine). Click Next:

list of radio button optionsL 1) use the OpenSSL library, 2) use the native windows secure channel library

  1. Configure the line ending conversions (the default is fine). Click Next:

list of radio button options: 1) checkout Windows-style, commit unix-style , 2) checkout is as is, commit is unix style, 3)checkout as is, commit is as is

  1. On the 'configuring the terminal emulator to use with Git Bash' window, choose the "Use Windows default console window" option:

two radio buttons: 1) Use MinTTY, 2) use Windows default console window Note: Do not choose "Use MinTTY (the default terminal of MSYS2)" as that MinTTY wil break Python.

  1. Configure the extra options (the defaults are fine). Click Next:

check boxes: 1) enable file system caching, 2) enable git credential manager, 3) enable symbolic links

  1. Git should now be installing:

image of progress bar

  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"

  1. Test install

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 (note that this is truncated):

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>]

Updating an earlier development version of Git (that is already installed)

Check which development version of Git is currently installed on the computer:

  1. Open a windows or OS/X terminal.

  2. Type the following into the terminal:

git --version

Check for the most recent development version of Git on their website here. As of December 2018, the most recent development version of Git is 2.19.2.

To update a computer that already has an earlier development version:

Open the Git website downloads page in a browser and follow the posted download instructions according to the computer type: Mac, Linux/Unix, or Windows.

Then, check that the new development version of Git is now installed:

  1. Close, and re-open a windows or OS/X terminal.

  2. Type the following into the terminal:

git --version
You can’t perform that action at this time.