Answers for "delete latest remote commit git"

4

git remove las remotet commit

git reset HEAD^ # remove commit locally
git push origin +HEAD # force-push the new HEAD commit
Posted by: Guest on March-19-2020
0

delete remote commit

git reset --hard <last_working_commit_id>
Posted by: Guest on April-30-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language