If youd don't mind fetching more, you can ask just to do "git fetch".
But, currently:
* A parameter <ref> without a colon is equivalent to
<ref>: when pulling/fetching, so it merges <ref> into the current
branch without storing the remote branch anywhere locally
I don't think it would be bad if we changed <ref> to mean <ref>:<ref>
and require <ref>: to pull without storing remote branch anywhere locally;
the problem is that we probably want <ref>:<remote>/<ref>.
An alternative would be to tag a fix, and as to do the following
$ git fetch origin tag proposed-fix
An alternative would be to have some branch used only to bring
working directory to given state, by using "git reset --hard <ref>"
while being on it.
E.g.
$ git checkout build
$ git reset --hard proposed-fix
(assuming that 'build' branch was created earlier).
[...]
I rather leave warning, but (perhaps around 1.5.1) remove the
instructions. RTFM (err... I'm not sure we have one about detached HEAD).
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html