Answers for "reset to last commit on remote repo"

6

remove last commit from remote

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

Reset a remote branch to previous commit

git reset --hard HEAD^
Posted by: Guest on January-08-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language