The background of the problem is this:
In order to use http://coding.net和http://github.com两个网站的pages服务,我本地git仓库关联了两个remote仓库,分别是http://coding.net和http://github.com远程库的,两个远程库的pages服务分支名分别是coding-pages和gh-pages。
at the same time, I have added these two remote libraries locally, assuming that I now develop the local branch The name is pagesServe. Now that the code commit has been submitted, how to push the current code to the coding-pages branch of coding and gh-pages of github respectively?
Putting aside the background of the problem, the description itself is:
My local development branch is named A. After each development, the code must be pushed to the B branch of the remote library remote01 and the C branch of the remote library remote02.
Is this idea feasible? What is the operation process? I'm new to git, so the more detailed you can be, the better.
Thank you everyone.
世界只因有你2017-05-02 09:35:08
git remote add origin <github-url>
git remote set-url --add origin <coding-url>
This can be merged into one remote.
Of course you can also open .git/config
and change it directly.