how to retrieve previous push code from gitlab code example Example: git reset in gitlab git reset --hard HEAD^^