错误地在我的 Azure Devops 团队的其他人的分支机构工作。对将我的更改推送到服务器感到困惑

Mistakenly worked in someone else's branch from my team in Azure Devops. Confused regarding pushing my changes to the server

我在别人的分支而不是我的工作,当我试图将它推送到服务器时,我无法这样做。当我尝试提交并推送时,出现以下错误。请帮忙。

根据报错信息:Update your branch by pulling before push,我们需要通过git pull更新您的本地分支,然后将更改推送到Azure DevOps Repo。此外,我们可以通过按钮 Pull and Push

来完成此操作

更新1

感谢菲利普的分享

我们应该知道 pull 默认情况下会进行合并,而且大多数时候,当您在自己的分支中工作时,您更喜欢与 rebase 同步。所以这个弹出窗口不会有帮助。