git undo last commit after push from git lab code example Example: git reset in gitlab git reset --hard HEAD^^