↧
Answer by G-Man for How do I discard unstaged changes in Git?
git checkout .This will discard any uncommitted changes to the branch. It won't reset it back if any changes were committed. This is handy when you've done some changes and decide you don't want them...
View ArticleAnswer by Choletski for How do I discard unstaged changes in Git?
Final working solutiongit restore .git clean -f git clean -df (if you have folders in your local changes)
View Article