How to submit a project to GitHub and Gitee (Code Cloud) repositories at the same time

As we all know, GitHubit is the world's largest gay dating site [Doge], which does not lack great God to write good open source project, but GitHubthere 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 Giteenot GitHubso 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 Giteeon, 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 GitHuband Giteetwo warehouses.

First, your first registration GitHuband Giteethese two sites, after registration you will need a good SSH keysadd simultaneously to both sites, please complete these two steps on their own!

After all preparations are in place, we can start.

1. In GitHubthe Create a new empty warehouse

Insert picture description here

2. GiteeOn a new association GitHubof empty warehouse

Insert picture description here

3. GitHubClone the empty warehouse of to the local

Insert picture description here

4. Modify GitProfile

Insert picture description here

5. The project brought before GitHuband Giteetwo warehouses

Insert picture description here

5. Verify GitHuband Giteetwo warehouses

Insert picture description here

Insert picture description here

The last mention of a mouth, through gitthe configuration we can also submit multiple warehouse at the same time, in addition to GitHuband Giteebeyond, as well as GitLab, Bitbucketor build your own Gitserver. 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.

Guess you like

Origin blog.csdn.net/yilovexing/article/details/107226141