Git Force Checkout
git checkout -f <Branch Name>
Embarrassed Echidna
git checkout -f <Branch Name>
git checkout <commit>
Force a Checkout
Pass the -f or --force optionwith the git checkout command
to force Git to switch branches,
even if you have un-staged changes
(in other words, the index of the working tree differs from HEAD).
Basically, it can be used to throw away local changes