Sticky Notes

Handle changes made in wrong git branch

This happens very often when you forget to create a new branch and make some changes in the same branch.

This will create a new branch named “new-branch” and move all your changes to it.

git switch -c "new-branch"
“If you only read the books that everyone else is reading, you can only think what everyone else is thinking.” - Murakami