gogs-lg I recently talked about Gogs and really like this solution. The main problem I encounter was the current stable version which may not be usable on Debian.

Here is a quick solution to make it work. First of all, install git:

apt-get install git

Then you can download the latest compiled version directly from gobuild.

wget http://gobuild.io/github.com/gogits/gogs/master/linux/amd64 -O output.zip
unzip output.zip

You can now access to port 3000. If you want to use it through a web server, here is my configuration with Nginx.

I hope it helped