Answers for "git delete all commits except last"

8

git remove all local commits

git reset --hard origin/<branch_name>
Posted by: Guest on April-18-2021
2

how to remove all commit in git

run this command
git reset --soft HEAD~
Posted by: Guest on February-15-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language