Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Move a Commit that was Committed on the Wrong Branch

    gitgit

    We'll do some work and commit it - but then realize it was on the wrong branch!

    To move a commit from one branch to another, we'll first git cherry-pick the commit we want, and then use git reset to remove the commit from the master branch.

    Then we'll be able to manually delete the changes that we don't want on the master branch.