This may be an edge case which has been discussed, but I did not find any 
topics relating to this.
If file 1 exists on branch B but not on branch A, I am seeing this behavior:
git checkout A
git checkout A -- 1
error: pathspec '1' did not match any file(s) known to git.
git checkout B
git checkout A -- 1
No complaints after running the last line the second time around. The file 
exists in the directory tree, and it is the version that exists in branch 
B. How come the second time, git does not throw an error message and just 
silently does nothing?
I'm using GIT version

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to