remove first 3 commits code example
Example 1: remove first 3 commits
git reset --hard
Example 2: remove first 3 commits
git push origin HEAD --force
Example 3: remove first 3 commits
git reset --hard HEAD~1
git reset --hard
git push origin HEAD --force
git reset --hard HEAD~1