I have a git branch structure as
feature
/
/
o master
\
\
develop
master
and develop
are currently same, i.e. no additional commits in develop
.
Now, I want to move the feature
branch's parent to develop
, so that the structure becomes:
o master
\
\
develop
\
\
feature
It is not necessary to preserve commit history of feature
. I just want to move the current state of feature
to a branch whose parent is develop
. This is required so that in future it can be merged with develop
without affecting master
.
I am new to git and have no idea about merging / rebase etc. Detailed steps would be appreciated.