git log (get the commit id that you want to reset to) git reset --hard "commit id" git reset --soft HEAD@{1} git commit -m "Reverting to the state of the project at commit id" git push