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
- 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.
- 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.
- The Git License will display. Read through and then Click Next to accept the terms of the license.
- 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.
- 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.
- Select your Start menu Folder. Choose Next to use the default.
- Choose which default editor you would like Git to use. For this class, choose ‘Use the Nano editor by default’ and click Next
- 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 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 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’.
- Configure your terminal emulator to use with Git Bash. Use the default ‘Use MinTTY’
- Configure extra options. Check: Enable file system caching and Enable Git Credential Manager
- Choose Install to start the installation.
- 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:
- Open the Start menu, you’ll find a new Git entry with the Git Bash icon
- 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:
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
- Git may already be installed on your machine. Open
terminal and type:
git --versionIf Git is installed, you will see a reply such as:git version 2.20.1 (Apple Git-117)
- If git is not installed, you can install it via homebrew (if you already have homebrew on your mac), or download git from the git-scm site.
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.
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).
Set up an SSH Key and connect your computer to GitHub