With upgrades in general the following series of commands are recommended.
git clean -xdf gwb clean gwb cleanIdea gwb Idea
Review the upgrade instructions carefully for any manual steps needed to accept the new version.