revert pull request git command code example
Example 1: undo git pull
git reset --hard master@{"10 minutes ago"}
Example 2: how to reverse a git pull
git reset --hard master@{"10 minutes ago"}
-----------------------------------------
git reset --keep HEAD@{1}
Example 3: git revert pr merge
git revert -m 1 b76a5f1f5d3b323679e466a1a1d5f93c8828b269 (Commit Number)