【发布时间】:2013-12-26 13:34:23
【问题描述】:
我一直在本地分支上处理我的存储库...我终于完成了所有需要的更改并提交,然后推送到我的 github 帐户。
然后我去另一台计算机拉下该副本以更新我过时的本地版本...当我尝试拉它时,它说:
Cannot pull because there are uncommitted changes. Commit or undo your changes before pulling again. See the Output window for details.
我该如何解决这个问题?
【问题讨论】:
-
如果您确定所有更改都与此版本无关:
git reset --hard && git pull或git stash && git pull && git stash apply如果您需要此更改。 (更安全的是提交它们然后拉) -
奇怪的是,我的另一台计算机上没有本地新提交。这只是一种过时的版本......虽然我也不确定在 Visual Studio 2013 中将命令行 git 的东西放在哪里
-
@JamesT 运行 git bash,将当前目录更改为项目的根目录并执行命令“git status”以查看自上次提交以来更改了哪些文件。
标签: git github visual-studio-2013 git-pull