git remote prune origin && git remote rm origin
Sometimes when you want to checkout a branch, even though your current branch is clean, you'll get a failed partial checkout, because a file in your current branch will be changed by the new branch (Looking at you .xcodeproj
files). As long as you know your current branch is clean and up-to-date, -f
force the checkout
git checkout -f the_branch