我在 GiLab 上有这个 repo:
https://gitlab.com/testrepo/api.git
这个 repo 上有一个名为 testing
的分支。我怎样才能推送到这个 repo 的 testing
分支?
如果我这样做:
git push origin master
它会将我的 master 推向可能是 repo 的 master。
最佳答案
你可以使用命令:
git push origin <your_local_branch>:<remote_branch>
推送到 git 中的任何分支。在您的示例中,这相当于运行:
git push origin master:testing
关于git - 如何推送到 Gitlab 上的远程 git 分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49540633/