Commit b7c7afa9 authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'aqualls-install-git' into 'master'

How to install Git - CTRT polish

See merge request gitlab-org/gitlab!77798
parents 59cf9402 c215948a
...@@ -3,96 +3,83 @@ stage: Create ...@@ -3,96 +3,83 @@ stage: Create
group: Source Code group: Source Code
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
description: 'This article describes how to install Git on macOS, Ubuntu Linux and Windows.' description: 'This article describes how to install Git on macOS, Ubuntu Linux and Windows.'
type: howto
--- ---
# Installing Git **(FREE)** # Installing Git **(FREE)**
To begin contributing to GitLab projects, To begin contributing to GitLab projects, you must install the appropriate Git client
you must install the Git client on your computer. on your computer. Information about [installing Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
This article shows you how to install Git on macOS, Ubuntu Linux and Windows.
Information on [installing Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
is also available at the official Git website. is also available at the official Git website.
## Install Git on macOS using the Homebrew package manager ## Supported operating systems
Although you can 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 Git with Homebrew to get access to an extensive selection of
dependency-managed libraries and applications.
If you don't need access to any additional development libraries or don't have
approximately 15 GB of available disk space for Xcode and Homebrew, use one of
the previously mentioned methods.
### Installing Xcode
To build dependencies, Homebrew needs the XCode Command Line Tools. Install
it by running in your terminal:
```shell Git is available for the following operating systems:
xcode-select --install
```
Click **Install** to download and install it. Alternatively, you can install - [macOS](#macos)
the entire [XCode](https://developer.apple.com/xcode/) package through the - [Ubuntu Linux](#ubuntu-linux)
macOS App Store. - [Microsoft Windows](#windows)
### Installing Homebrew ### macOS
With Xcode installed, browse to the [Homebrew website](https://brew.sh/index.html) A version of Git is supplied by macOS. You can use this version, or install the latest
for the official Homebrew installation instructions. version of Git on macOS by downloading it from the project website. We recommend
installing Git with [Homebrew](https://brew.sh/index.html). With Homebrew, you can
access an extensive selection of libraries and applications, with their dependencies
managed for you.
### Installing Git via Homebrew Prerequisites:
With Homebrew installed, you are now ready to install Git. - 15 GB of available disk space for Homebrew and Xcode.
Open a terminal and enter the following command: - Extra disk space for any additional development libraries.
```shell To install Git on macOS:
brew install git
```
Congratulations! You should now have Git installed via Homebrew. 1. Open a terminal and install the XCode Command Line Tools:
To verify that Git works on your system, run: ```shell
xcode-select --install
```
```shell Alternatively, you can install the entire [XCode](https://developer.apple.com/xcode/)
git --version package through the macOS App Store.
```
Next, read our article on [adding an SSH key to GitLab](../../../ssh/index.md). 1. Select **Install** to download and install XCode Command Line Tools.
1. Install Homebrew according to the [official Homebrew installation instructions](https://brew.sh/index.html).
1. Install Git by running `brew install git` from your terminal.
1. In a terminal, verify that Git works on your computer:
## Install Git on Ubuntu Linux ```shell
git --version
```
On Ubuntu and other Linux operating systems ### Ubuntu Linux
it is recommended to use the built-in package manager to install Git.
Open a terminal and enter the following commands On Ubuntu and other Linux operating systems, use the built-in package manager
to install the latest Git from the official Git maintained package archives: to install Git:
```shell 1. Open a terminal and run these commands to install the latest Git
sudo apt-add-repository ppa:git-core/ppa from the officially
sudo apt-get update maintained package archives:
sudo apt-get install git
```
Congratulations! You should now have Git installed via the Ubuntu package manager. ```shell
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
```
To verify that Git works on your system, run: 1. To verify that Git works on your computer, run:
```shell ```shell
git --version git --version
``` ```
Next, read our article on [adding an SSH key to GitLab](../../../ssh/index.md). ### Windows
## Installing Git on Windows from the Git website Go to the [Git website](https://git-scm.com/), and then download and install Git for Windows.
Open the [Git website](https://git-scm.com/) and download and install Git for Windows. ## After you install Git
Next, read our article on [adding an SSH key to GitLab](../../../ssh/index.md). After you successfully install Git on your computer, read about [adding an SSH key to GitLab](../../../ssh/index.md).
<!-- ## Troubleshooting <!-- ## Troubleshooting
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment