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 can reset your branch with HEAD
git reset --hard branch_name
then fetch branches and delete branches which are not on remote from local,
git fetch -p