- Install Git on macOS using the Homebrew package manager
- Install Git on Ubuntu Linux
- Installing Git on Windows from the Git website
Installing Git
To begin contributing to GitLab projects, you will need to install the Git client on your computer.
This article will show you how to install Git on macOS, Ubuntu Linux and Windows.
Information on installing Git is also available at the official Git website.
Install Git on macOS using the Homebrew package manager
Although it is easy to use the version of Git shipped with macOS or install the latest version of Git on macOS by downloading it from the project website, we recommend installing it via Homebrew to get access to an extensive selection of dependency managed libraries and applications.
If you are sure you don’t need access to any additional development libraries or don’t have approximately 15gb of available disk space for Xcode and Homebrew, use one of the aforementioned methods.
Installing Xcode
Xcode is needed by Homebrew to build dependencies. You can install XCode through the macOS App Store.
Installing Homebrew
Once Xcode is installed browse to the Homebrew website for the official Homebrew installation instructions.
Installing Git via Homebrew
With Homebrew installed you are now ready to install Git. Open a Terminal and enter in the following command:
brew install git
Congratulations you should now have Git installed via Homebrew.
Next read our article on adding an SSH key to GitLab.
Install Git on Ubuntu Linux
On Ubuntu and other Linux operating systems it is recommended to use the built in package manager to install Git.
Open a Terminal and enter in the following commands to install the latest Git from the official Git maintained package archives:
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
Congratulations you should now have Git installed via the Ubuntu package manager.
Next read our article on adding an SSH key to GitLab.
Installing Git on Windows from the Git website
Browse to the Git website and download and install Git for Windows.
Next read our article on adding an SSH key to GitLab.
Help and feedback
If there's something you don't like about this feature
To propose functionality that GitLab does not yet offer
To further help GitLab in shaping new features
If you didn't find what you were looking for
If you want help with something very specific to your use case, and can use some community support
POST ON GITLAB FORUM
If you have problems setting up or using this feature (depending on your GitLab subscription)
REQUEST SUPPORT
To view all GitLab tiers and features or to upgrade
If you want to try all features available in GitLab.com
If you want to try all features available in GitLab self-managed
If you spot an error or a need for improvement and would like to fix it yourself in a merge request
EDIT THIS PAGE
If you would like to suggest an improvement to this doc