Skip to content

Instantly share code, notes, and snippets.

@axilleas
Created November 9, 2013 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axilleas/7388455 to your computer and use it in GitHub Desktop.
Save axilleas/7388455 to your computer and use it in GitHub Desktop.
igitlab
Cloning into 'gitlab-shell'...
remote: Counting objects: 904, done.
remote: Compressing objects: 100% (555/555), done.
remote: Total 904 (delta 454), reused 742 (delta 314)
Receiving objects: 100% (904/904), 145.26 KiB | 151.00 KiB/s, done.
Resolving deltas: 100% (454/454), done.
Checking connectivity... done
error: unknown switch `s'
usage: git checkout [options] <branch>
or: git checkout [options] [<branch>] -- <file>...
-q, --quiet suppress progress reporting
-b <branch> create and checkout a new branch
-B <branch> create/reset and checkout a branch
-l create reflog for new branch
--detach detach the HEAD at named commit
-t, --track set upstream info for new branch
--orphan <new branch>
new unparented branch
-2, --ours checkout our version for unmerged files
-3, --theirs checkout their version for unmerged files
-f, --force force checkout (throw away local modifications)
-m, --merge perform a 3-way merge with the new branch
--overwrite-ignore update ignored files (default)
--conflict <style> conflict style (merge or diff3)
-p, --patch select hunks interactively
--ignore-skip-worktree-bits
do not limit pathspecs to sparse entries only
mkdir -p /home/git/repositories: true
mkdir -p /home/git/.ssh: true
chmod 700 /home/git/.ssh: true
touch /home/git/.ssh/authorized_keys: true
chmod 600 /home/git/.ssh/authorized_keys: true
chmod -R ug+rwX,o-rwx /home/git/repositories: true
find /home/git/repositories -type d -print0 | xargs -0 chmod g+s: true
# =============================
# = GitLab Shell Installation =
# =============================
#
# Go to home directory
cd /home/git
# Clone gitlab shell
sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git
cd gitlab-shell
# switch to right version
sudo -u git -H git checkout $gitlab-shell_release
# copy example config to config.yml
sudo -u git -H cp config.yml.example config.yml
# Edit config and replace gitlab_url
sudo -u git -H sed -i "s/localhost/${domain_var}/g" config.yml
# Do setup
sudo -u git -H ./bin/install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment