With an interactive rebase.

$ git rebase --interactive "commit HASH to remove"^  # note the ^ character

In the rebase TODO list, remove the commit(s) you don’t need, save and
exit. If the commit is really old (in term of new commits, not necessarily
time), there may be merge conflicts, so be prepared!

Best,
Gergely

hellboy <pbon...@gmail.com> ezt írta (időpont: 2016. szept. 5., H, 9:59):

> How can I (temporally) remove commit from branch if this commit is not the
> last in the history
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to