Deploying a Git Repository Server in Ubuntu « Battery Powered.
Definitely look into doing this as although GitHub is useful for F/OSS projects you have to pay for private repos. I also have a project that has sensitive server access information and I would rather have it under my control.