Mid Version Control

This creates a new branch from that commit and keeps your work safe.?

Example:

You checked out an old commit for debugging:

git checkout a1b2c3d

Then made edits and committed — but forgot to make a new branch.

Create one before switching back, or you’ll lose that work.

More from Developer Essentials

All questions for this course