Error creating new branch: cannot specify base branch other than current when there are uncommitted changes

Knowledge Drop

Last tested: Oct 9, 2020

If you see this error when trying to create a new branch, check that you have no uncommitted changes on the branch you’re on - you can’t switch with uncommitted code, so there are changes, either commit or revert them to switch.