我的经历:
我正在做一个项目,不小心把所有更改都提交到了Github并使用了相同的提交信息,但这不是问题所在,我使用了
git reset --soft HEAD~1
已经在本地解决了所有问题,现在我正在尝试再次将其推送到Github,但总是收到以下信息:
error: failed to push some refs to 'https://github.com/dr-coder/Chat-App.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.
如何将我的 Github 仓库恢复为可推送状态?