On 04/09/2012 18:21, Senthil wrote:
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

Just tested this in v1.7.11, and it behaves as expected (errors out both times). Whatever the problem was (and I agree, it's unexpected behaviour), it's been fixed.

You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to