Latest story
Committed to the Wrong Branch? Here's How to Move That Commit
You’ve finished a change, committed it, and moved on—then you notice the branch name. The commit went to the wrong branch. It’s a frustrating mistake, but you usually don’t need to copy your files or redo your work. You can move the commit to the branch where it belongs, then clean up the original branch safely.