I have made a commit on a wrong branch and I wanted to know if I can move the commit from the branch to another.
Here's my actual situation
Branch 1 ----- 2 --- 4 --- 5 --- 6
/
HEAD ------- 1
\
Branch 2 ----- 3
And here is what i would have
Branch 1 ------ 4 --- 5 --- 6
/
HEAD ------- 1
\
Branch 2 ----- 2 --- 3
Is that even possible?
The commit "2" only add a file never used in that branch after but i need that file in my Branch 2.. Can I "simply" recreate the file in my Branch 2 and deal with the one my Branch 1 when I'm gonna merge them? I'm using GitHub to host my code and GitKraken on my desktop.
Thank you!