【发布时间】:2012-06-28 15:00:09
【问题描述】:
在 git 中,我试图将特定存储库的版本检出到临时文件夹内的版本文件夹中,但是当我这样做时
git checkout master~X C:/file/path/temp/versionX
我得到了错误
error: pathspec 'temp/versionX' did not match any file(s) known to git.
是什么导致了问题,我该如何解决?
【问题讨论】:
-
我假设
master~X是包含您想要的文件的旧版本,而C:/file/path/temp/versionX是您想要放置旧文件的位置。缺少两点信息:您想要哪个旧文件(相对于 Git 存储库的根目录)?您的 Git 存储库的路径是什么? -
repo 的路径是 C:/file/path
标签: git git-checkout filepath