在Visual Studio中创建的分支,想推到我的遥控器.获取错误



i在github上分配了一个项目,然后将其拉入我的本地VisualStudio。在VS中,我有两个遥控器,原始的和我的叉子。

我在本地使用Visual Studio创建了一个分支。编码,测试,在当地承诺。现在,我想推到我的遥控器,但是我会收到错误:

将分支推向远程存储库时遇到的错误:git 因致命错误而失败。无法访问 'https://github.com/xxx/xxx.git/':请求 URL返回错误:403推到 https://github.com/xxx/xxx.git

,但这是我分配的原始回购。

如何将本地分支与我的遥控器相关联,而不是原始分支?

在此处找到答案

If you already have a local branch and want to set it to a remote branch you just pulled down, or want to change the upstream branch

您正在跟踪,您可以使用-u或 - 设定的上游选项来git 分支以任何时间明确设置。

$ git分支-u rount/serverfixBranch ServerFix设置为从Origin跟踪远程分支服务器。

最新更新