So we have a develop
branch which we base our feature branches from.
Two days ago someone pushed a bad commit to develop
, but I based my feature branch of it and already have few commits pushed into it. They removed the unnecessary commit from the develop
branch but it still stays in my feature branch commits. It looks something like this:
bad commit
\
o---o---X develop
\
X---o---o---o feature
\
bad commit
What I need to do is to remove the commit that I based my branch of and instead rebase to the commit before it. Do i use git rebase --i
or git rebase --onto
, I'm not really sure. Thank you in advance!