GIT - Remove all uncommitted changes
- This will unstage all files you might have staged with git add:
- This will revert all local uncommitted changes (should be executed in repo root):
- You can also revert uncommitted changes only to particular file or directory:
- Yet another way to revert all uncommitted changes (longer to type, but works from any subdirectory):
- This will remove all local untracked files, so only git tracked files remain:
Comments