如何将代码推送到不同的项目仓库?
How to push code to different projects repos?
我现在为 3 个不同的客户工作,我需要将代码推送到他们的存储库。我在想,如果我更改工作目录,它允许我设置新的远程源。但是在执行这个命令后 git remote
我看到了旧的遥控器。
如何为不同的客户端设置不同的遥控器?
提前致谢!
P.S 我在 bitbucket 上有一个帐户,具有读取和写入客户端 repos 的权限。
只需为每个客户端添加一个遥控器
git remote add client1 path-to-repo-client1
git remote add client2 path-to-repo-client2
# then you can do stuff
git push client1 branch-client1
git push client2 branch-client2
我现在为 3 个不同的客户工作,我需要将代码推送到他们的存储库。我在想,如果我更改工作目录,它允许我设置新的远程源。但是在执行这个命令后 git remote
我看到了旧的遥控器。
如何为不同的客户端设置不同的遥控器? 提前致谢!
P.S 我在 bitbucket 上有一个帐户,具有读取和写入客户端 repos 的权限。
只需为每个客户端添加一个遥控器
git remote add client1 path-to-repo-client1
git remote add client2 path-to-repo-client2
# then you can do stuff
git push client1 branch-client1
git push client2 branch-client2