Return to a previous state with the Git passthrough

How Git users can revert changes that have not been committed. If you committed your changes locally with the Git passthrough but have not pushed anything, your changes are still on your local machine. The following commands will help you undo your local changes. First, we’ll check the status of the repo and review the list of changed files in the repo.

caution
Before you go back in time, quit editors or applications using files and cancel all open changelists.
wvs git status

This will show you your list of changed files and whether they’ve been committed. Now we will discard your local changes to a single file.

wvs git checkout --<file>

To discard local changes to all your files.

wvs git reset --hard

Report a problem with this page.