If you want to change your remote repository to point to some arbitrary commit you cold do the following:

1
git push -f origin sha1:branchname

But be careful, you may break someone else`s repository in the case it has being fetched or cloned by someone.

Related Posts