gitlab how to revert to a previous commit code example Example: git reset in gitlab git reset --hard HEAD^^