El 10/9/2007, a las 13:19, Pierre Habouzit escribió:
Nope you definitely can have a file named master, actually at
work we
have a directory of our repository called master. But a refname / path
ambiguity is easy to solve in git: add '--' before if it's a path, or
after the token if you mean the reference, and all is fine.
Unlike branch/tag ambiguity that is heavy to resolve (you have to
prepend refs/{tags,heads}/ which is very long and "complex" to type)
disambiguate a path is easy and straightforward. My point is that
reference/path ambiguity is easy to deal with even from a beginner
PoV.
And indeed I now see that it is in the git-checkout manpage after all:
If you have an unfortunate branch that is named hello.c,
this step
would be confused as an instruction to switch to that
branch. You
should instead write:
$ git checkout -- hello.c
Cheers,
Wincent
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html