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

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:21

Jeff King [off-list ref] writes:
Previously, git-reset always required a work directory. For
--mixed and --hard resets, this makes sense, as the bare
repo doesn't have an index or a working tree. However, for
--soft, there's no reason to prohibit this behavior.

Signed-off-by: Jeff King <redacted>
---
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"???
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help