Answers for "github remove last 10 commit"

-1

remove last commit git

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

remove last commit

git commit -m "Something terribly misguided"
git reset HEAD~                              
[ edit files as necessary ]                  
git add .                                    
git commit -c ORIG_HEAD
Posted by: Guest on August-09-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language