Answers for "delete a previous commit git"

-1

remove last commit git

git reset --hard HEAD^
git push origin -f
Posted by: Guest on October-01-2020
0

git delete 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