A new open source project called Gitea is attempting to make it faster and easier to set up a self-hosted Git service. Forked from Gogs, Gitea is written in Go and runs on all the major OSes.
Rémy Boulanouar, one of the Gitea developers explained, "For my own usage, I have dozens of project stored in Git in my personal laptop. I don't want to share them with everybody and don't want to pay to have private repositories of GitHub. I used BitBucket a while ago to have [a] free private repository, but since I have a personal server at home, I wanted to store everything on it. Gitea is the perfect match for me: free, fast, and small."
Somewhat ironically, the code for the tool that will allow you to set up an alternative to GitHub is currently available on GitHub.