Is there an option in tortoisegit to undo the last commit into the repo?
By mistake I pushed a large number of unnecessary files into my git repository(branch:master) which I need to undo. I have searched a lot for the right option in tortoise git to undo the push and go back to the state before the last commit. Please show me a way to undo my last commit.
If you need to revert back to the previous state before the last commit just select the commited action from the log list and select revert changes by this commit
.
Take care, you need to commit
and push
again the changes made.