首页 > 解决方案 > Visual Studio:将分支推送到远程存储库时遇到错误:无法拉取以集成更改:拉取命令已禁用

问题描述

您好目前我有一个烧瓶网络项目,我想将其推送到 bitbucket 存储库。我正在尝试将此存储库推送到我团队的 BitBucket 存储库。到目前为止,唯一的文件是 Readme.md 和GitIgnore

但是,每次我尝试推送时:我都会收到此错误:

> Error encountered while pushing branch to the remote repository:
> rejected Updates were rejected because the tip of your current branch
> is behind its remote counterpart. Integrate the remote changes  before
> pushing again. Failed to push the branch to the remote repository. See
> the Output window for more details. Pushing master

问题是我有点无法整合这些远程机会,因为我的拉动命令被禁用。

我怎样才能简单地解决这个问题?

因此,对于 Califiry,我正在一个现有项目中工作,并在我连接到 BitBucker Repisotry 的地方添加了一个源代码控制。

我试图通过首先克隆 Repisitory 然后通过“添加现有项目”添加这个现有项目来做到这一点。但我不再获得调试选项,因此我直接从项目中执行此操作

标签: gitbitbucketvisual-studio-2019

解决方案


推荐阅读