gitlab reset head to previous commit code example Example: git reset in gitlab git reset --hard HEAD^^