version control - How do I discard unstaged changes in Git? - Stack Overflow

PHOTO EMBED

Mon Feb 01 2021 16:25:18 GMT+0000 (UTC)

Saved by @ali_alaraby

git checkout -- .

git checkout -- path/to/file/to/revert
content_copyCOPY

https://stackoverflow.com/questions/52704/how-do-i-discard-unstaged-changes-in-git