how to go back one pull in git code example Example: git remove current pull git reset --hard HEAD@{1}