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
You need to commit or destroy any unsaved changes before you switch branch.
Git won't let you switch branch if it means unsaved changes would be removed.