【发布时间】:2014-10-24 05:31:34
【问题描述】:
我的 Windows 8.1 计算机上有一个本地分支,它丢失了对远程源的跟踪,无法再拉或推。修补它
$ git branch -u origin/LostBranch
Branch LostBranch set up to track remote branch LostBranch from origin.
但在那之后,尝试拉出以下错误
git.exe pull -v --progress "origin"
error: no such remote ref 76b9285a434564e6de16336307092c7ad6cb8015 refs/heads/feature/meetingroom
error: no such remote ref 97fe8cf5a85a4d1b2ac9f879507e75cfc2680c65 refs/heads/master
error: no such remote ref aada820ffee201d3976d3a7c7358a04f1c99860c refs/heads/LostBranch
git did not exit cleanly (exit code 1)
我很困惑这究竟意味着什么以及如何解决这个问题?
【问题讨论】:
-
git fetch工作吗? -
重新安装 msysgit 并重启工作。
标签: git git-branch git-pull