Instructables user scottkidall has posted this useful tutorial for nabbing your own private Git server without paying for the private repository service that GitHub offers.
Git is usually used in synchronization with GitHub — the former is a source code management system and the latter is a website where you can share/contribute Git repositories with the larger internet community.
For those wanting to get started with GitHub, I’ve written this Instructable: Introduction to GitHub.
But, what if you want to keep your repositories private? The usual answer is that you have to pay for this service. Boo.
A lot of us have code-in-progress that we want to properly put onto the Git system, but ins’t ready for public consumption. Nor do we want to pay for the service of private hosting.
However, using the Raspberry Pi, you can set up your own Git server on your home network.
This Instructable will cover setting up your Raspberry Pi as a Git server with repositories saved onto an external USB thumb drive. My example uses the Mac OS, but can be extended to other platforms as well.
You should already have Git installed on your laptop and know the fundamentals of how to use it. Check out the Introduction to GitHub Instructable if this is not the case.
See the full tutorial here.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!