I was accidentally working on the wrong branch. Now I want to transfer all my changes to the correct branch.
If I stash the changes and apply them on the correct branch, will it only add the uncommitted changes to the correct branch or every change/commit from the wrong branch that doesn't exist on the correct branch?
For example
Wrong branch has:
Commit a
Uncommitted Changes b
Correct branch has
- Commit c
If I do git stash on the wrong branch and git apply stash in the correct branch, will it transfer commit a to the correct branch?