git reset pull code example
Example 1: git force pull
git fetch --all
git reset --hard origin/master
Example 2: undo git pull
git reset --hard master@{"10 minutes ago"}
Example 3: how to reverse a git pull
git reset --hard master@{"10 minutes ago"}
-----------------------------------------
git reset --keep HEAD@{1}