If I want to pull a pull request from someone without having to add their fork as a remote, I do
git pull https://github.com/<user>/<repo name>.git <branch name>
However, if there are merge conflicts, this fails, and I'd like to be able to just do
git reset --hard https://github.com/<user>/<repo name>.git/<branch name>
just as I would otherwise do e.g.
git reset --hard upstream/master
This doesn't work however, I get
fatal: invalid object name 'https'.
How can I do a hard reset to the OP's branch?