In my previous post, I’ve mentioned about the importance of sharing and improving code and in particular how important it is to have the code in the server rather than maintaining multiple back up copies of your code.
One more opensource tool that I wanted to mention here is BitBucket.
You can pretty much find many differences between these two in the following link. For me both are great way to manage your source code but with one exception. In Bitbucket we can have a free private repository whereas github will not allow until it is a paid version.
My suggestion is, use github if you want to opensouce or want to showcase your code and if you want to have a free private repo use bitbucket.