No, git revert only affects the commit history. If you want to undo changes in the working directory or staging area, you should use commands like git checkout, git restore, or git reset.
Example Code: To discard changes in the working directory:
git checkout -- <file>
To discard staged changes:
git reset HEAD <file>