Git is a versioning system that is used by millions of users around the world. Developed by Linus Torvalds in April of 2005, Git is used for over 21.8 million repositories.
Why not just use Github? Was the first question I asked when considering why I should write this article. Github along with other hosted repository services usually allow only a few private repositories. This provides a dilemma for the little man, should we pay for more private repos , should we spread our repositories out over multiple services or should we host our own private git server?
There are benefits to hosting your own git server. Unlimited private repos, the possibility to have more control for each user and group privileges, just to name a couple. Now that we have looked at the options available and weighed the pros and cons of each service, maybe you have decided to host your own git server.
First things first, which open source git server should we use? I decided to utilize GitLab, being open source, and readily available it also has a web based GUI.
Before we install GitLab, I recommend installing Postfix and setting up SMTP email server so that GitLab can push emails when needed.
Assuming you have already installed and setup Postfix, Let’s move on to GitLab.
Download the packages using wget. Then install the package:
sudo dpkg -i gitlab_7.9.4-omnibus.1-1_amd64.deb
Now we need to configure GitLab:
sudo gitlab-ctl reconfigure
Edit the ‘external_url’, give the server domain, and save the file.
In your web browser, open your GitLab site, using ‘root; for the system admin and ‘5iveL!fe’ for the password. Change your password after your first login for obvious security reasons.
Thank you for utilizing this quick and simple installation guide for installing and setting up your own private git server.