I’ve found sometimes after I’ve reverted commits, my remote repository will ask for change comments when I’m updating it.
To reset my remote repository to the master branch and remove any and all local changes, just do this:
$ git reset --hard origin/master
It will say something like this:
HEAD is now at 6934401 Fix sentry #412750341