Let's say we have a branching structure like:
develop -> --- a --- b --- c
\ \
feature 1 -> \ --- d --- e
\
feature 2 -> --- f --- g
After doing work on feature 1, I decide it really should of been branched off as a sub-task of feature 2.
Is there a way for feature 1 to 'undo' branching off of develop, and branch off of feature 2 instead, while keeping its commits?
Example:
develop -> --- a --- b --- c
\
feature 1 -> \ --- d --- e
\ /
feature 2 -> f --- g