I push changes to my remote repo, how do I revert or undo my changes with Git?
I made changes to my project and pushed my changes to my remote repo, but I want to undo that change now. How can I do that on WVS?
Answer
If your changes are now in the cloud and you decide you don't want it anymore, we can help you return to the previous state with the git passthrough on the WVS CLI.
WARNING: If you’re working as a team, contact your team about reverting changes since it may affect other people’s work, unless you’re working alone or on your own branch.
-
Check your list of commits to view everything that was pushed to your remote project:
wvs git log
-
Now that you see the list of commits in the project, you can narrow down how far back you want to go. Copy the Commit ID from the commit you want and save it for this command:
wvs git revert <commitID>
3.After a successful revert message, you can check the status of your repository and files and continue.
wvs git status