I am trying to merge commits from branch B to branch A.
branch A has commits a-c
branch B has commits d-f BUT doesn't have commits a-c in it's commit history.
How can I get branch B's commits d-f to show in branch A after commit c.
I tried git cherry-pick hashCommit
but I got a message saying
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Otherwise, please use 'git reset'
I also checked out this SO post, but wasn't sure which Answer was suitable for me.
When I look in my github pages branch B, at the top it say branch B is x commits ahead of branch A
Also after doing the cherry-pick
, when I type git log, the first commit shows
commit hashCommitNumber (HEAD -> branchB, origin/branchB, branchA)
I am currently checked out on branch B