gitlab remove last commit from branch code example Example: git reset in gitlab git reset --hard HEAD^^