//Undo the last commit locally git reset HEAD^ //then push to the remote repository git push origin +HEAD