Now, we're finally ready to install GitLab itself! Log in (or use su) as the git user and check out the GitLab Community Edition repository:
- Make sure that you go to the GitLab website first and pick a branch that's new and stable, like I have in the following code:
git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 11-1-stable gitlab
- Next up, change into the directory that you just checked GitLab into:
cd gitlab
- Copy the example config and edit the file with your preferred text editor, according to the directions at the top of the file:
cp config/gitlab.yml.example config/gitlab.yml
- Make the uploads directory:
mkdir public/uploads/
- Copy the default config files:
cp config/secrets.yml.example config/secrets.yml ...