git: better way for git revert without additional reverted commit

Posted by Albert on Stack Overflow See other posts from Stack Overflow or by Albert
Published on 2009-10-06T16:29:57Z Indexed on 2010/04/30 6:37 UTC
Read the original article Hit count: 202

Filed under:
|

I have a commit in a remote+local branch and I want to throw that commit out of the history and put some of them into an own branch.

Basically, right now I have:

           D---E---F---G master

And I want:

             E---G topic
            /
           D master

That should be both in my local and in the (there is only one, called origin) remote repository.

Which is the cleanest way to get that?

Also, there are also other people who have cloned that repo and who have checked out the master branch. If I would do such a change in the remote repo, would 'git pull' work for them to get also to the same state?

© Stack Overflow or respective owner

Related posts about git

Related posts about revert