I\'m trying to switch branches in git but I\'m getting this error message:
error: you need to resolve your current index first
I\'m using g
If you don't care about the changes that git says are outstanding, then you can do a force checkout.
git checkout -f {{insert your branch name here}}