ankit
0
Q:

remove last commit from remote

git reset HEAD^ # remove commit locally
git push origin +HEAD # force-push the new HEAD commit
0
$git rebase -i HEAD~2
0
git push origin +HEAD^:<name of your branch, most likely 'master'>
0
1
$git rebase -i HEAD~2
0

New to Communities?

Join the community