Mid Version Control

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

More from Developer Essentials

All questions for this course