I\'m trying to delete the last 2 commits from one of my GitHub repositories. I\'ve tried as suggested here : git push -f origin HEAD^^:master. It seems that it
git push -f origin HEAD^^:master
To remove the last two commits locally I'd suggest using:
git reset --hard HEAD^^
Rebase is a completely different operation that won't help you here.