Answers for "remove all commits in a branch from other"

8

git remove all local commits

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

git remove last two commits from branch

git reset --hard HEAD^^
Posted by: Guest on September-13-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language