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"