我想将 HEAD 指针重置为我之前的提交
$ git reset --hard HEAD~1
HEAD 移至上一个提交,但是,无法推送到我的原始主机
$git push origin master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/username/repo.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
如何移动指针并告诉 Git 更新更改?