So one particular branch was pushed to develop, but now I want to revert that and undo all the last commit changes.
Sorry I know this has been covered in many posts but I am somehow stuck at one step.
What I read was I can run the following command
git reset HEAD~1
and also tried this git reset --soft HEAD~1
When I run the below command, I can see in my visual studio that there are a lot of uncommit changes because of the above step, which I actually want to discard since I want to revert these.
Now what shall I do now, if I do undo changes and try to commit, I dont see any option to commit.
Is there any option to undo these changes and just do a commit directly. I might have missed some critical step here but kind of stuck here.
If anyone can share that step please.