How do I revert or undo my local changes with Git?
Answer
Git users can revert using the Git passthrough in WVS. If your changes are local and you haven't pushed your changes to your remote repository, you can do the following:
-
To get information on your repository and view your list of changes, run:
wvs git status
-
To undo your changes to a file, run:
wvs git checkout --<file>
-
To undo your changes to all of your files, run:
wvs git reset --hard
Additional Documentation:
https://docs.wvs.io/wiki/Projects/return_undo/return-git.html