remove last commit id in gitlab code example
Example 1: git delete local commit
git reset --hard origin/<branch_name>
Example 2: git reset in gitlab
git reset --hard HEAD^^
git reset --hard origin/<branch_name>
git reset --hard HEAD^^