how to remove last pull in git code example
Example 1: git cancel last commit
git reset --soft HEAD~1
Example 2: git remove current pull
git reset --hard HEAD@{1}
Example 3: remove the last commit git without losing changes
git reset HEAD~1 --soft