Skip to main content
It looks like you're using Internet Explorer 11 or older. This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge. If you continue with this browser, you may see unexpected results.
COVID-19 Library Dashboard
Get the latest information on the status of library services and space.
 Ask a Question

Software Carpentry

MacOS

Special instructions for Catalina and Big Sur

If you are using MacOS 10.15 ("Catalina") or later, you will need to give "Full Disk Access" permissions to the Terminal. If you're using an earlier version of MacOS, you can skip this section and continue to the installation instructions.

  1. Open the System Preferences app
  2. Select Security and Privacy
  3. Select the Privacy tab
  4. Click the Padlock icon in lower left-hand corner of the window. Enter your user name and password when prompted.
  5. In the left-hand box, scroll down until you find Full Disk Access and select it
  6. If the Terminal app is already listed in the right-hand box, check the box next to it
  7. If the Terminal app isn't listed in the right-hand box, add it:
    1. Click the + icon under the right-hand box
    2. In the Applications menu, open the Utilities folder and select Terminal.app
    3. Click the Open button
    4. Locate Terminal in the right-hand box and check the box next to it
  8. Close System Preferences

Install

You can install Git on your Mac using one of the following methods (we list more than one method because sometimes your permission settings will prevent one of the methods from working. Start at the top of the list and work your way down).

Method 1

  1. Open the Terminal application by using the Launchpad or by browsing the Utilities folder found in Applications
  2. Type clang --version and press Return
  3. A window will pop up asking if you would like to install Xcode Command Line Tools. Follow the prompts to install them.

Method 2

  1. Open the Terminal application by using the Launchpad or by browsing the Utilities folder found in Applications
  2. Type xcode-select --install and press Return
  3. A window will pop up asking if you would like to install Xcode Command Line Tools. Follow the prompts to install them.

Method 3

  1. Visit https://developer.apple.com/download/more/ in your web browser
  2. You will be prompted to log in with an Apple Developer ID (this is different than your Apple ID). Follow the instructions for creating an Apple Developer ID and use it to log into the site.
  3. Download the latest version of Command Line Tools for XCode and install

Verify

  1. Open the Terminal application by using the Launchpad or by browsing the Utilities folder found in Applications
  2. Type git --version and press Return
  3. You should see a message reporting the version number

Windows

Install

  1. Download the Git for Windows installer.
  2. Run the installer and follow the steps below:
    1. Click on "Next" four times (two times if you've previously installed Git). You don't need to change anything in the Information, location, components, and start menu screens.
    2. From the dropdown menu select "Use the nano editor by default" and click on "Next".
    3. Ensure that "Git from the command line and also from 3rd-party software" is selected and click on "Next". (If you don't do this Git Bash will not work properly, requiring you to remove the Git Bash installation, re-run the installer and to select the "Git from the command line and also from 3rd-party software" option.)
    4. Ensure that "Use the native Windows Secure Channel library" is selected and click on "Next".
    5. Ensure that "Checkout Windows-style, commit Unix-style line endings" is selected and click on "Next".
    6. Ensure that "Use Windows' default console window" is selected and click on "Next".
    7. Ensure that "Default (fast-forward or merge) is selected and click "Next"
    8. Ensure that "Enable file system caching" and "Enable Git Credential Manager" are selected and click on "Next".
    9. Click on "Install".
    10. Click on "Finish" or "Next".
  3. Explicitly set the "HOME" environment variable for Windows if you haven't done so already:
    1. Open command prompt (Open Start Menu then type cmd and press Enter)
    2. Type the following line into the command prompt window exactly as shown:

      setx HOME "%USERPROFILE%"

    3. Press Enter, you should see SUCCESS: Specified value was saved.
    4. Quit command prompt by typing exit then pressing Enter

Verify

  1. Open the GitBash application
  2. Type git --version and press Enter
  3. You should see a message reporting the version number

Linux

Install

If Git is not already available on your machine you can try to install it via your distro's package manager.

  • For Debian/Ubuntu, run
sudo apt-get install git
  • For Fedora, run
sudo dnf install git
  • For other distributions, consult your distro's documentation

Verify

  1. Open your terminal application
  2. Type git --version and press Enter
  3. You should see a message reporting the version number