I accidentally worked on the wrong branch. Now I want to push all my changes to the correct branch.
If I close the changes and apply them in the correct branch, will it only add uncommitted changes to the correct branch or every change / commit from the wrong branch that does not exist in the correct branch?
for instance
The wrong branch has:
The correct branch has
If I do git stash on the wrong branch and git apply stash on the correct branch, will it pass commit a to the correct branch?
source share