git revert
generates a new commit. Try to git reset --hard sha
where sha
is the commit id of your last working commit.
That will reset your HEAD
to that commit and so deletes all following commits, which should be the commits you just pulled.
Caution: Can cause data loss on wrong usage.