【发布时间】:2021-05-20 17:00:39
【问题描述】:
在我执行“git reset hard”回到旧提交后我应该做什么?我在 heroku 上部署了一个站点,我的代码搞砸了,所以我只是做了一个“git reset,我从来没有做过。我在 VSCode 上的代码回到了我想要的方式,但是当我尝试做”git push origin master”或“git push heroku master”,它给了我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.
我已经尝试查找它并弄乱了我发现的一些东西,但这对我来说真的很混乱和陌生。我现在如何将这个旧版本推送到网站?
【问题讨论】:
标签: git