Answers for "reset local commits"

8

git remove all local commits

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

git clear commits

git reset --hard origin
Posted by: Guest on September-18-2020
0

undo the most recent local commits in Git

git reset HEAD~
Posted by: Guest on August-06-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language