I have mistakenly taken the pull from wrong branch. How to revert it from VSCODE ?
I need to revert the changes to the previous state which it was before the pull.
I have mistakenly taken the pull from wrong branch. How to revert it from VSCODE ?
I need to revert the changes to the previous state which it was before the pull.
Unfortunately, as of my knowledge, there isn't any built-in feature that lets you revert a pull.
Although, you could do something like
git checkout [revision] .
where [revision]
is the hash of the commit you had previously.
Note: don't forget the .
at the end ;)