- Get commit ID using this command
git log
- Revert using the specif id
git revert 497011c4a1914839a6555dc8041ac8 9b5d1f3241
- Reset master branch to the parent of reverted commit id
git push origin + 497011c4a1914839a6555dc8041ac8 9b5d1f3241^:master
x^ as the parent of
x and + as a forced non-fast forward push.)
Comments