diff options
Diffstat (limited to 'doc/topics/git/how_to_install_git/index.md')
-rw-r--r-- | doc/topics/git/how_to_install_git/index.md | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/doc/topics/git/how_to_install_git/index.md b/doc/topics/git/how_to_install_git/index.md index 2c3cd61f050..75ea6183a32 100644 --- a/doc/topics/git/how_to_install_git/index.md +++ b/doc/topics/git/how_to_install_git/index.md @@ -6,7 +6,7 @@ article_type: user guide date: 2017-05-15 description: 'This article describes how to install Git on macOS, Ubuntu Linux and Windows.' type: howto -last_updated: 2019-05-31 +last_updated: 2020-04-22 --- # Installing Git @@ -32,34 +32,47 @@ use one of the aforementioned methods. ### Installing Xcode -Xcode is needed by Homebrew to build dependencies. -You can install [XCode](https://developer.apple.com/xcode/) -through the macOS App Store. +To build dependencies, Homebrew needs the XCode Command Line Tools. Install +it by running in your terminal: + +```shell +xcode-select --install +``` + +Click **Install** to download and install it. Alternatively, you can install +the entire [XCode](https://developer.apple.com/xcode/) package through the +macOS App Store. ### Installing Homebrew -Once Xcode is installed browse to the [Homebrew website](https://brew.sh/index.html) +With Xcode installed, browse to the [Homebrew website](https://brew.sh/index.html) 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: +With Homebrew installed, you are now ready to install Git. +Open a terminal and enter the following command: ```shell brew install git ``` -Congratulations you should now have Git installed via Homebrew. +Congratulations! You should now have Git installed via Homebrew. + +To verify that Git works on your system, run: + +```shell +git --version +``` -Next read our article on [adding an SSH key to GitLab](../../../ssh/README.md). +Next, read our article on [adding an SSH key to GitLab](../../../ssh/README.md). ## 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. +it is recommended to use the built-in package manager to install Git. -Open a Terminal and enter in the following commands +Open a terminal and enter the following commands to install the latest Git from the official Git maintained package archives: ```shell @@ -68,15 +81,21 @@ sudo apt-get update sudo apt-get install git ``` -Congratulations you should now have Git installed via the Ubuntu package manager. +Congratulations! You should now have Git installed via the Ubuntu package manager. + +To verify that Git works on your system, run: + +```shell +git --version +``` -Next read our article on [adding an SSH key to GitLab](../../../ssh/README.md). +Next, read our article on [adding an SSH key to GitLab](../../../ssh/README.md). ## Installing Git on Windows from the Git website -Browse to the [Git website](https://git-scm.com/) and download and install Git for Windows. +Open the [Git website](https://git-scm.com/) and download and install Git for Windows. -Next read our article on [adding an SSH key to GitLab](../../../ssh/README.md). +Next, read our article on [adding an SSH key to GitLab](../../../ssh/README.md). <!-- ## Troubleshooting |