how to revert master to history commint gitlab code example Example: git reset in gitlab git reset --hard HEAD^^