best way to cancel a pull request into branch code example
Example 1: disregard incoming git pull and return to last commit
git reset --hard HEAD
Example 2: git pull from parent branch
git merge A
git reset --hard HEAD
git merge A