Suppose your git head points to the latest commit in the branch say, master.
First make your head point to the older version you need to revert by using the commit id from github
git reset –hard <commitid>
Then push to github using
git push -f origin <commitid>:master
Here the branch we use is master