【发布时间】:2023-03-26 11:30:01
【问题描述】:
一段时间以来,我一直在将我的项目从 Visual Studio 2017 拉出并推送到 TFS。 直到最近,我都无法从远程仓库中拉取
我收到此错误:
Git 因致命错误而失败。 拉 --verbose --progress --no-edit --no-stat --recurse-submodules=no origin
我尝试了不同的方法来解决这个问题
-
从 Team Explorer/Settings/Repository Settings,我检查了覆盖全局用户名和电子邮件,并手动输入了该 repo 的凭据——没有修复它
李> 我从 Visual Studio 安装程序重新安装了 Git——没有修复它
注意:我尝试在 VS 中拉入或推送的每个项目都会发生这种情况(甚至是不在 TFS 中的项目)
我该如何解决这个问题?
【问题讨论】:
-
我首先要检查的是来自 Git bash 的
git status。这应该可以告诉您幕后真正发生的事情。 -
我忘了提到我使用 git bash 来拉取和推送到原点,但不知何故,即使我得到 git bash 的肯定响应,它也没有拉取或推送
-
检查我的 git 状态 ==>
$ git status On branch working Your branch and 'origin/working' have diverged, and have 1 and 3 different commits each, respectively. (use "git pull" to merge the remote branch into yours) nothing to commit, working tree clean
标签: git tfs visual-studio-2017