PITS Blog
  • Home
  • Services
    • Dedicated team Have your own development team at our location in Kerala, India. We tailor our employees individually to your project.
    • Website & web shop Get into the online business and sell your products around the clock. Or convince yourself with a modern website on desktop and mobile devices.
    • Application development We develop very individual web or software applications for you for a wide variety of needs.
    • Hybrid or native iOS & Android Apps Online business is often done on the go today, and the trend is rising. Invest now and make your software mobile-compatible.
  • Credentials
  • Technology
  • Process
  • About us
  • Contact
  • White papers
  • Jobs
  • Blog
  • Startups
�
Avatar

Run your own Git server with GitLab

By Francis Varghese on July, 1 2016
demo post

By Visakh R N

WordPress and .NET

By Priyanka K

Roadmap to become a DevOps Engineer

By Francis Varghese

Gutenberg - More Than Just An Editor

By Priyanka K

By far, the most widely used modern version control system in the world today is Git. Having a distributed architecture, Git is an example of a DVCS (Distributed Version Control System). Rather than having only one single place for the full version history of the software as is common in once-popular version control systems like CVS or Subversion (also known as SVN), in Git, every developer’s working copy of the code is also a repository that can contain the full history of all changes.

In addition to being distributed, Git has been designed with performance, security and flexibility in mind.

In this tutorial we are going to talk about setting up a Git server Using GitLab Community Edition (it’s free), and for this I used a fully patched Ubuntu 14.04 LTS server running on a VPS.

Step 1 : Install Git on your server

You can install Git from the packages already available via the repos or your distros, or you can do it manually.

sudo apt-get install git-core

Step 2 : Install GitLab

GitLab is an open source project which allows users to run a project management system similar to GitHub on their own servers. You can use GitLab to run a service similar to GitHub for your team members or your company. You can use GitLab to work on private projects before releasing them for public contributions.

Before we install GitLab, you may want to configure an SMTP email server so that GitLab can push emails as and when needed. They recommend Postfix. So, install Postfix on your server.

sudo apt-get install postfixk
sudo dpkg-reconfigure postfix

Now download GitLab package file

wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab-ce_7.10.4~omnibus-1_amd64.deb (Download latest package file with respect to you system environment from here https://about.gitlab.com/downloads/archives)

Install and Configure

sudo dpkg -i gitlab-ce_7.10.4~omnibus-1_amd64.deb

sudo gitlab-ctl reconfigure

You now need to configure the domain name in the configuration file so you can access GitLab.

sudo nano /etc/gitlab/gitlab.rb

In this file edit the ‘external_url’ and give the server domain. Save the file and then open the newly created GitLab site from a web browser. By default it creates ‘root’ as the system admin and uses ‘5iveL!fe’ as the password. Log into the GitLab site and then change the password.

Now you are ready to go, log into the site and start managing your project. GitLab is overflowing with features and options.

We'd love to hear from you.

Contact us

Switzerland
thomas(at)pitsolutions(dot)com
+41 (0) 43 558 4360

India
enquiries(at)pitsolutions(dot)com
+91 (0) 471 270 0615 / 715

UAE
mohammed(at)pitsolutions(dot)com
+971 (0) 4 359 8610

USA
arnab(at)pitsolutions(dot)com
+1 (0) 703 945 8076

Copyright © 2019PIT Solutions AG.An ISO 9001:2015 certified company. All Rights Reserved

SCROLL TO TOP