我推送到某个存储库的 Git 分支没有出现在 Azure DevOps 的 "Mine"列表中

标签 git azure azure-devops

大多数时候,当我将 git 分支推送到 Azure DevOps 时,它会出现在分支屏幕上的“我的”列表中。然而,有一个仓库却并非如此。我确保我用来推送分支的 git 电子邮件地址与我用来登录 Azure DevOps 的电子邮件地址相匹配,但由于某种原因,一个存储库不会向我显示我的分支。同一组织中还有其他运行良好的存储库。这个仓库可能发生了什么?谢谢! :)

编辑:我在行动中发现了这个问题!

enter image description here

各个提交与我的帐户关联,但当我推送到 Azure DevOps 时,推送与 Anthony 的帐户关联。现在,我之前以 Anthony 的身份登录到 Azure DevOps 以便进行更改,但是一旦设置了我的帐户,我想我就切换到了我自己的帐户。不知何故,我仍然必须以 Anthony 身份登录 - 但在哪里?

最佳答案

我必须使用 Windows 中的其他帐户删除我的旧凭据,如下所述:

Git pushing to remote GitHub repository as wrong user

tl;博士

  1. 转至 Windows 控制面板 > 用户帐户 > 凭据管理器 > Windows 凭据
  2. 找到我旧的 git 登录信息:https://dev.azure.com/blah然后点击它
  3. 点击“删除”

这样做之后,我创建了一个测试分支并尝试推送它;系统提示我使用正确的帐户登录,完成此操作后,分支会正确显示在 Azure DevOps 中的“我的分支”屏幕上。

关于我推送到某个存储库的 Git 分支没有出现在 Azure DevOps 的 "Mine"列表中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59203640/

相关文章:

azure - 在Azure云中创建多个子帐户

azure - 宇宙数据库 : range string index return query error

azure - FunctionApp 中的 ExpiredAuthenticationToken

json - 使用 Azure 发布管道在开发、阶段和生产槽上部署期间替换/更新 json 文件的值

git - 如何将 go pkg 添加到现有仓库?

git - 本地 "forking"一个 git 仓库

c# - 调试测试时从 local.setting.json 读取值

visual-studio - 不工作 : Add a Project to Team Foundation Server 2012 using Visual Studio 2015

git - 共享 grails 域类的可持续方式?

git - 您如何暂存新文件的各个部分?