- stash your current change or
-
reset --hard HEAD(if you do not mind losing those minor changes) or -
checkout -f(When switching branches, proceed even if the index or the working tree differs from HEAD. This is used to throw away local changes. )
相关文章: