Delete commits fully
git log -n 3
# 3 means to list the latest 3 commitsgit rebase -i 77d55bd72c63d43cc83f9c0fea4990c33527c2a6
Another option
Last updated
git log -n 3
# 3 means to list the latest 3 commitsgit rebase -i 77d55bd72c63d43cc83f9c0fea4990c33527c2a6
Last updated
git push -f origin mastergit reset HEAD^
git push origin +HEAD