Reference URL:
Http://www.admin10000.com/document/5374.html
Http://blog.sina.com.cn/s/blog_4f3b79d0010166ab.html
Currently in version control is the mainstream use of Git, the more popular have GitHub and BitBucket, they each have what characteristics, the developer how to choose:
Github: Currently the largest code hosting site, most of the world's Open source software is hosted here, has developed into a software development collaboration community, with powerful features. It is free for open source projects, and private warehouses are charged at $7 per month. Hosting the code on the site can be more of a concern.
BitBucket: Support for Git and mercurial two versioning, functionally comparable to GitHub, the warehouse can be either public or private, 5 people below the warehouse free, 10 people charge is 10 dollars per month.
How to choose?
If it's an open source project and you want to get more attention, choose GitHub.
If a small team, the development of private projects, want to use free services, then choose Bitbuket.
Chargeable service, two can be, personal referral github.
Git uses a detailed tutorial