I am currently working with this git tree/workflow
A [master]
\
B ------------- D [develop]
\ /
C1 -- C2 -- C3 -- C4 [feature1]
Now i wanted to create a new branch for the 2nd feature but i forgot to check out the new branch and i commited new code to the Feature1 branch.
A [master]
\
B ------------- D [develop]
\ /
C1 -- C2 -- C3 [feature2]
\
C4 [feature2]
So what i want to do now it to remove C4 form the feature 1 branche and add it to the feature 2 branche which is still non existent. C4 is not yet pushed to the remote, the rest of the project is.