As we all know, GitHub
it is the world's largest gay dating site [Doge], which does not lack great God to write good open source project, but GitHub
there is a fatal flaw, that is domestic access speed is too slow. To solve this problem, a good domestic code hosting platform Gitee
(code cloud) applications was born, but Gitee
not GitHub
so well-known. So we think that my code can be placed on the most well-known GitHub
, but also compatible with access and download speed, what should I do?
The answer is that while the code will be submitted to GitHub
, and Gitee
on, then how to do it? Next, I will step by step to create a new project from scratch, and then submitted to the same time GitHub
and Gitee
two warehouses.
First, your first registration GitHub
and Gitee
these two sites, after registration you will need a good SSH keys
add simultaneously to both sites, please complete these two steps on their own!
After all preparations are in place, we can start.
1. In GitHub
the Create a new empty warehouse
2. Gitee
On a new association GitHub
of empty warehouse
3. GitHub
Clone the empty warehouse of to the local
4. Modify Git
Profile
5. The project brought before GitHub
and Gitee
two warehouses
5. Verify GitHub
and Gitee
two warehouses
The last mention of a mouth, through git
the configuration we can also submit multiple warehouse at the same time, in addition to GitHub
and Gitee
beyond, as well as GitLab
, Bitbucket
or build your own Git
server. However, it is recommended that you submit no more than two remote warehouses at most. Private warehouses are not necessary. Public ones are sufficient. After all, submitting one more warehouse will take a bit more time.