I accidentally committed to the wrong branch. How do I delete that commit?
Following command worked for me, all the local committed changes are dropped & local is reset to the same as remote origin/master branch.
git reset --hard origin