Undoing a ‘git push’
You need to make sure that no other users of this repository are fetching the incorrect changes or trying to build on top of the commits that you want removed because you are about to rewind history. Then you need to ‘force’ push the old reference. or in your case You may have receive.denyNonFastForwards set on the … Read more