将分支推送到远程存储库时遇到视觉 Studio:Error:无法拉取以集成更改:拉取命令已禁用

Visual Studio:Error encountered while pushing branch to the remote repository: Cannot pull to integrate changes: Pull comand disabled

你好目前我有一个 flask web 项目,我想将其推送到 bitbucket repitory。我正在尝试将此存储库推送到我团队的 BitBucket 存储库。 T他目前唯一的文件是 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 然后通过“添加现有项目”添加此现有项目来实现此目的。但我不再获得调试选项,因此我直接从项目.

执行此操作

此处出现相同错误 - 如果您的 bitbucket 或其他存储库为空,只需使用 push --force 选项即可更正:

git push -u --force origin master