remove the latest pull code from git code example Example: git remove current pull git reset --hard HEAD@{1}