作者:用户ll08sq9y2x | 来源:互联网 | 2022-10-26 16:05
I want to push and syncronize my code in two different remote repository, to Gitlab and Github at the same command, is it possible?
1> choroba..:
Yes. Just define two remotes for your working copy:
git remote add lab https://gitlab.com/...
git remote add hub https://github.com/...
Push takes a repository as a parameter:
git push lab master
git push hub master
对于单行`git push lab master; git push hub master` :)