Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Is there a way to fetch commits that are detached

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:39

Allan Caffee [off-list ref] writes:
Is there a way to explicitly fetch whatever objects are necessary to checkout
the commit?
One security principle built into git is that any object that is
unreachable from refs/* is not to be exposed to outside world.  If the
commit is not on any ref, you shouldn't be able to obtain it remotely.

So you need to know which branch (or it could be a tag) the commit you
want is on, fetch that branch or tag and then check the commit out.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help