How do you move commits from one branch to another?
If you accidentally committed to the wrong branch, you can move those commits cleanly.
Steps:
Switch to the correct branch:
git checkout correct-branch
If you accidentally committed to the wrong branch, you can move those commits cleanly.
Steps:
Switch to the correct branch:
git checkout correct-branch