Confused about github rebasing
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Mar 15 15:31:19 PDT 2012
On Thu, Mar 15, 2012 at 11:12:26PM +0100, Alex Rønne Petersen wrote:
> On 15-03-2012 22:37, H. S. Teoh wrote:
[...]
> >I did discover an interesting thing about git though... at one point
> >in the cleanup process I accidentally reset 1 more commit than I had
> >intended, and that commit had no other references to it
> >(unreachable). But luckily I still had its hash available, so `git
> >merge<hash>` managed to restore it. I guess old unreachable commits
> >are still kept until you run git gc.
> >
> >So that's one of the times when you *don't* want to run git gc. :-)
[...]
> See also git reflog. It's a life-saver.
[...]
Cool! Didn't know about that. Would've needed it if I didn't still have
the hash to the orphaned commit. :) Thanks for the tip.
T
--
Democracy: The triumph of popularity over principle. -- C.Bond
More information about the Digitalmars-d-learn
mailing list