【问题标题】:How to push code to different projects repos?如何将代码推送到不同的项目仓库?
【发布时间】:2019-07-21 11:46:35
【问题描述】:

我现在为 3 个不同的客户工作,我需要将代码推送到他们的仓库。我在想,如果我更改工作目录,它允许我设置新的远程来源。但是在执行完这条命令git remote之后,我看到了旧遥控器。

如何为不同的客户端设置不同的遥控器? 提前谢谢!

P.S 我在 bitbucket 上有一个帐户,具有读取和写入客户 repos 的权限。

【问题讨论】:

    标签: git git-push git-remote


    【解决方案1】:

    只需为每个客户端添加一个遥控器

    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
    

    【讨论】:

      猜你喜欢
      • 2022-01-14
      • 2023-03-27
      • 1970-01-01
      • 2021-08-15
      • 2011-07-08
      • 2012-08-14
      • 2022-06-13
      • 1970-01-01
      • 2015-08-29
      相关资源
      最近更新 更多