是否可以调用git log filepath
并查看文件是否在提交中,但无法使用 来检查它git checkout filepath
?
错误:pathspec 'filepath' 与 git 已知的任何文件都不匹配。
我在同一棵工作树中。
编辑:添加了包含git log filepath
,git diff sha1id
和git checkout filepath
.
> git log 889e2e74-6ec3-448b-ad35-feb2187d9d2b
commit b2df50ecd14472a1c38d2cd2269898d4f3ab9604
Author: l
Date: Tue Apr 16 15:20:39 2013 +0100
Committed 889e2e74-6ec3-448b-ad35-feb2187d9d2b
commit dc9ee9433fd87c9031e7569ab451d2c02343e146
Author: l
Date: Tue Apr 16 15:20:38 2013 +0100
Committed 3f743855-ec1b-4e76-808a-eafc6042c47a
commit 79eed05ab387f0f6aec266df109d7cda26789c83
Author: f
Date: Tue Apr 16 15:19:58 2013 +0100
Committed 889e2e74-6ec3-448b-ad35-feb2187d9d2b
git diff dc9ee9
diff --git a/3f743855-ec1b-4e76-808a-eafc6042c47a b/3f743855-ec1b-4e76-808a-eafc6042c47a
index 612e91c..619ac4f 100644
Binary files a/3f743855-ec1b-4e76-808a-eafc6042c47a and b/3f743855-ec1b-4e76-808a-eafc6042c47a differ
diff --git a/889e2e74-6ec3-448b-ad35-feb2187d9d2b b/889e2e74-6ec3-448b-ad35-feb2187d9d2b
new file mode 100644
index 0000000..0ae16b3
Binary files /dev/null and b/889e2e74-6ec3-448b-ad35-feb2187d9d2b differ
diff --git a/a007422b-0b9d-4773-aba7-54b6dd2b4ceb b/a007422b-0b9d-4773-aba7-54b6dd2b4ceb
index 5df614e..831cb07 100644
Binary files a/a007422b-0b9d-4773-aba7-54b6dd2b4ceb and b/a007422b-0b9d-4773-aba7-54b6dd2b4ceb differ
git checkout dc9ee9 ./889e2e74-6ec3-448b-ad35-feb2187d9d2b
error: pathspec '889e2e74-6ec3-448b-ad35-feb2187d9d2b' did not match any file(s) known to git.