git delete everything and pull code example Example: git remove current pull git reset --hard HEAD@{1}