See git help of a specyfic command git help stash Delete old already pushed commits git reset --hard HEAD~x // Elimina los ultimos x+1 commits git push -f