Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: [PATCH] git-reset: allow --soft in a bare repo

From: Jeff King <hidden>
Date: 2016-06-15 22:43:21

On Fri, Jul 13, 2007 at 10:19:23PM -0700, Junio C Hamano wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help