Version Control

VCS-related articles, for example GIT or SVN

Upgrading gitlab to latest stable version

This is based on the gitlab installation described here. cd /home/git/gitlab sudo -u git -H git pull sudo -u git -H git branch -a This should give you a list of available branches. You should probably checkout the latest stable branch: sudo -u git -H git checkout 6-7-stable Install the gems: sudo -i git -H bundle install –deployment –without […]

Installing Gitlab on Debian

First install these packages to resolve all dependancies: apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate python python-docutils Install Ruby 2.0: cd /tmp wget tar -xvpf ruby-2.0.0-p247.tar.gz cd ruby-2.0.0-p247 ./configure make make install Install Bundler: gem install bundler Create the git […]

Creating a GIT repository and clone it via SSH

On your git server (in this example named test01), just create a folder /git which will contain the git repositories in this example and follow these steps: root@test01:/git# mkdir myrepo root@test01:/git# cd myrepo/ root@test01:/git/myrepo# git init-db Initialized empty Git repository in /home/git/myrepo/.git/ root@test01:/git/myrepo# cd .. root@test01:/git# git clone –bare myrepo myrepo.git Cloning into bare repository myrepo.git… done. […]