Following How can I rollback a github repository to a specific commit? I did
git reset --hard <my-commit-id>
now when I do git status
it shows: your branch is behind 'origin' by 8 commits....
How can I push this previous version of commit to my master therefore it becomes a master.
When I try to push it tells me
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/hel.github.io.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.