git: better way for git revert without additional reverted commit
- by Albert
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?