Hey, On Wed, 29 Dec 2010 22:05:46 +0000, Philip Jackson <[email protected]> wrote:
> Personally I don't think we need a commit based hard reset. I'd say x > RET X is fine for the cases you need to do one, a bit safer too. I often do a hard reset on a commit. Scenarios: 1. I commit something, something else, then realize that same stuff has already been done by someone else. So I want to "git reset --hard somesha" to back before when I started with those commits. Throwing away a branch for that is not always the appropriate solution. 2. I start working on things, commit stuff, realize that I'd better put that into a topic branch. I create that branch and want to reset the previous one (usually "master") to when I started working on this particular feature. At the moment I always to M-! git reset --hard ... with copy&paste of the SHA I want to rest to. Why not enable this from magit itself? Regards, m.
