Installing Git#

Before you can run any git commands, you must have a copy of Git installed on your computer.

Palmetto#

If you are on a login or compute node of the Palmetto Cluster, Git is already installed and available for use!

Just type the git command at your terminal.

Windows#

For Windows systems, download and run the installer from git-scm.com.

After you finish the installation, find and open Git Bash from the Start menu. The git command is only available through this special terminal window by default.

macOS#

On macOS, Git is available as part of Appleā€™s command line developer tools. To access these tools, open Terminal from the Utilities section of your Applications folder.

Run the following command to install the command line developer tools.

sudo xcode-select --install

Before you can use the command line developer tools, you must accept the terms of the license agreement.

sudo xcodebuild -license

Now, you should be able to use the git command in your Terminal.

Linux#

On Linux, you will need to install Git through your package manager.

The following command will work on Ubuntu and other Debian-based operating systems. If you are using a different distribution, you will need to do some research to locate the correct command and package names.

sudo apt-get install git

Now, you should be able to use the git command in your Terminal.