On Fri, Jul 13, 2007 at 10:19:23PM -0700, Junio C Hamano wrote: > > Somebody asked about this on irc ("how do I rewind history in a bare > > repo"). The only other ways right now are to update the ref manually > > (which involves plumbing), or to "git-push -f" from a non-bare > > repository. I can't think of any good reason why a soft reset shouldn't > > be allowed. > > How about "git branch -f this $that"??? Ah, I hadn't thought of that. It seems a bit of a contortion, though, since git-branch is usually used for _making_ a branch, whereas git-reset is usually used for _changing_ a branch. But maybe that's just me. At any rate, it might still be worth applying the patch. It should be harmless to loosen the restriction, and even if there are several ways to accomplish the same thing, why punish people who try git-reset first? On the other hand, this is the first time I've seen it come up, so maybe this isn't confusing people. -Peff - 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