Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
5a0e138b
Commit
5a0e138b
authored
May 15, 2017
by
Sean Packham (GitLab)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'docs/install-git' into 'master'
Technical article "How to install Git" See merge request !11384
parents
0663458c
0fd196ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
0 deletions
+71
-0
doc/articles/how_to_install_git/index.md
doc/articles/how_to_install_git/index.md
+66
-0
doc/articles/index.md
doc/articles/index.md
+4
-0
doc/topics/git/index.md
doc/topics/git/index.md
+1
-0
No files found.
doc/articles/how_to_install_git/index.md
0 → 100644
View file @
5a0e138b
# Installing Git
> **Article [Type](../../development/writing_documentation.html#types-of-technical-articles):** user guide ||
> **Level:** beginner ||
> **Author:** [Sean Packham](https://gitlab.com/SeanPackham) ||
> **Publication date:** 2017/05/15
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.
## 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 dependancy 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 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.
### Installing Homebrew
Once Xcode is installed browse to the
[
Homebrew website
](
http://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:
```
bash
brew
install
git
```
Congratulations you should now have Git installed via Homebrew.
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.
Open a Terminal and enter in the following commands
to install the latest Git from the official Git maintained package archives:
```
bash
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
](
../../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.
Next read our article on
[
adding an SSH key to GitLab
](
../../ssh/README.md
)
.
doc/articles/index.md
View file @
5a0e138b
...
@@ -12,6 +12,10 @@ They are written by members of the GitLab Team and by
...
@@ -12,6 +12,10 @@ They are written by members of the GitLab Team and by
-
**LDAP**
-
**LDAP**
-
[
How to configure LDAP with GitLab CE
](
how_to_configure_ldap_gitlab_ce/index.md
)
-
[
How to configure LDAP with GitLab CE
](
how_to_configure_ldap_gitlab_ce/index.md
)
## Git
-
[
How to install Git
](
how_to_install_git/index.md
)
## GitLab Pages
## GitLab Pages
-
**GitLab Pages from A to Z**
-
**GitLab Pages from A to Z**
...
...
doc/topics/git/index.md
View file @
5a0e138b
...
@@ -22,6 +22,7 @@ We've gathered some resources to help you to get the best from Git with GitLab.
...
@@ -22,6 +22,7 @@ We've gathered some resources to help you to get the best from Git with GitLab.
-
[
Cherry-picking a commit
](
../../user/project/merge_requests/cherry_pick_changes.md#cherry-picking-a-commit
)
-
[
Cherry-picking a commit
](
../../user/project/merge_requests/cherry_pick_changes.md#cherry-picking-a-commit
)
-
[
Squashing commits
](
../../workflow/gitlab_flow.md#squashing-commits-with-rebase
)
-
[
Squashing commits
](
../../workflow/gitlab_flow.md#squashing-commits-with-rebase
)
-
**Articles:**
-
**Articles:**
-
[
How to install Git
](
../../articles/how_to_install_git/index.md
)
-
[
Git Tips & Tricks
](
https://about.gitlab.com/2016/12/08/git-tips-and-tricks/
)
-
[
Git Tips & Tricks
](
https://about.gitlab.com/2016/12/08/git-tips-and-tricks/
)
-
[
Eight Tips to help you work better with Git
](
https://about.gitlab.com/2015/02/19/8-tips-to-help-you-work-better-with-git/
)
-
[
Eight Tips to help you work better with Git
](
https://about.gitlab.com/2015/02/19/8-tips-to-help-you-work-better-with-git/
)
-
**Presentations:**
-
**Presentations:**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment