Git Tip! Did you make your changes in the wrong branch?

Did you forget to create a new branch?

Posted on May 13, 2022

Tags:

GIT

We’ve all forgotten to create a new branch from time to time, but making changes in the wrong branch is easily fixed.
The command below creates a new branch and moves all your changes over to that new branch.

git switch -c "new-branch"