So a couple of weeks ago I received an email asking how to go about setting up a Git server on Linux. This is actually pretty straight forward, provided you are familiar with Linux. I made a quick video describing the process:
In this video we end up accessing the repository on the server through SSH. There are alternatives to this, such as WebDav, or the built in Git protocol. However, everything I have ever worked on has used SSH to access the repository. It’s also how GitHub does it.
The basic steps:
Connect to the server
Make sure that all your developers have a user account on the server (adduser)
Create a group on the system for your developers (addgroup)
Add all the developers to that group. I did this by manually editing /etc/group on the server, but the more correct way would be to use the useradd command. That way you are less likely to mess up the group file.
Create a directory in which to put the git repository.
Set the group ownership to the group you just created (chgrp)
Make the directory group read/writable, with the sticky bit set so subdirectories inherit the group permissions (chmod)
After over a year, here’s the next instalment of my Git tutorial! In this video we look at the difference between rebasing and pulling from remote repositories. Sorry it took so long! (more…)
So this afternoon I was bored. Then I thought I would be somewhat productive and make some videos. I didn’t have anything prepared for making programming ones. However, I had a couple of people ask me about Git and why I thought it was so freaking great. So, today I offer you 3 new videos, giving a basic overview of the Git Source Code Management System. Here are the videos so far:
In the last video, we just looked at adding files and commiting changes. This is great, but remember that in Git, commits are local. In this video we look at how we can set up remote repositories that we can push data to, either to use as backups, or for sharing with others. (more…)
This video hits up the terminal and starts using git. We start by creating a git repository, which is super easy with Git. Then, we look at adding files to the repository, and commiting changes. (more…)