Do you need to cancel a git pull attempt from GitHub, BitBucket or GitLab? Did you need to undo a git pull command with conflicts that stop the local and remote code from merging?
Don't worry, it's easy undo git pull merge commands with conflicts. Just issue one of the following two commands:
git reset --hard HEAD
or
git merge --abort
Both of these operations will cancel and undo git pull merge conflicts that mess up your local workspace.
![](https://s2.save4k.ru/pic/8UEHexHwU9o/mqdefault.jpg)