André Amorim

Crafting Web Experiences

//

Remove the last Git commit from remote

Be careful using this, it’s might cause data lose:

git reset HEAD^ 
git push origin +HEAD 

If you want to still have it in your local repository and only remove it from the remote, then you can use:

git push origin +HEAD^:<name of your branch, most likely 'master'>

Published date:

Modified date: