How to undo last commit Git
I got the tutorial from stackoverflow again. I just want to take the solution here so that I can easily search it.
This is the solution link : http://stackoverflow.com/questions/927358/how-do-you-undo-the-last-commit
This is the answer that I have tried :
git reset --hard <commit_id> git push origin <branch_name> -f