Are you paranoid and want to protect your codes at all times?
Gitcrypt is inspired by this document written by Ning Shang, which was in turn inspired by this post. Without these two documents, by people much smarter than me, git-encrypt would not exist.
There is some controversy over using this technique, so do your research and understand the implications of using this tool before you go crazy with it.
Check out the project on GitHub.