Installation

Choose the instructions based on your computer

Please note: You may need administrator's rights to install the Git software. If you do not have Administrator's rights, please contact your computer support team.

Install Git on Windows

Download a PDF of these instructions for installing Git on Windows.
  1. Navigate to http://git-scm.com/
    The webpage will auto-detect what operating system. Look for the computer screen on the right-hand side of the page. Click on Download 2.21.0 for Windows. Your computer should automatically launch an explorer window and ask you where to save the program on your computer.
    download button for windows
  2. Navigate to where you saved the Git program .exe file. Right-click on the file and choose ‘Run as Administrator’. If asked, enter in administrator credentials. This should launch the installer. You may receive a security warning about the software being from an unknown publisher. You can safely ignore this message. Click the Run or Yes button to continue or cancel to exit out of the installation.
  3. The Git License will display. Read through and then Click Next to accept the terms of the license.
    git license
  4. Choose where Git will be installed. Click Next to choose the default location provided unless you know you need to install the software somewhere else on your machine.
    file path where git will be installed
  5. Choose where Git will be installed. Select the components you want installed along with the Git software. There are already some default options checked. Make sure to check: Windows Explorer integration, including Git Bash Here and Git GUI Here. This component will allow you to use the Windows Explorer context menu to access git Bash and Git Gui. All other options are optional. See screenshot below.
    git installation window asking which components should be installed
  6. Select your Start menu Folder. Choose Next to use the default.
    start folder window
  7. Choose which default editor you would like Git to use. For this class, choose ‘Use the Nano editor by default’ and click Next
    choose your editor window
  8. Choose how you would like to use Git from the command line. You can choose ‘Git from the command line and also from 3rd-party software’ or ‘Use Git from Git Bash only’
    choose how to use git on command line
  9. Choose a SSL/TLS library. Select ‘Use the native Windows Secure Channel library. This allows Git to use the certificates that are native to your machine and may avoid a path problem later on.
    choose native windows secure channel library
  10. Choose an option for how Git should treat line endings in text files. Recommended to keep the default as this is better if you’re planning on sharing your project with others who may be using a different operating system. Choose ‘Checkout Windows-style, commit Unix-style line endings’.
    default for line endings
  11. Configure your terminal emulator to use with Git Bash. Use the default ‘Use MinTTY’
    use MinTTY with git bash
  12. Configure extra options. Check: Enable file system caching and Enable Git Credential Manager
    extra options
  13. Choose Install to start the installation.
  14. Check or uncheck the boxes to launch Git Bash or to view the release notes. Click Finish to exit the installer.

Once installed, you can access Git bash or the Git GUI in a couple of ways:

  1. Open the Start menu, you’ll find a new Git entry with the Git Bash icon
  2. Best Way: Navigate to a folder on your machine where you want to use Git
    • Right click inside the folder. You'll notice two new options in your context menu: Git Bash and Git Gui

Either way, you will see the following when you open Git Bash:

git bash screen

Note that you can’t use Git in directories that are from Box Sync or Box Drive.

After the class, if you want to change from Nano to using Notepad ++ as your text editor, see these instructions.

OK, Windows user, you're done with installation. Now set up some basic configuration.

Install Git on a Mac

Download a PDF of these instructions for Macs.

Git is now installed! Now you just need to set up some basic configuration.

Install Git on Other Platforms

So you're not using Windows or Mac? Try git-scm/downloads for your OS and follow instructions from there.

Configure Git

You can put in some configurations now - these will be added to every project you start on your computer.
Open up Git Bash (if you're on PC), or your Terminal (if you're on mac) and run the following 2 commands (remember to swap out "your name" and "your email address" with your own relevant info).

git config --global user.name "your name"
git config --global user.email "your email address"
Also, we're going to be using the "Nano" text editor in class, so tell git to make Nano your default editor:
git config --global core.editor "nano"

Next Steps

Set up an SSH Key and connect your computer to GitHub