git push编辑旧提交

时间:2017-05-15 15:34:52

标签: git push

假设我已提交1 - 提交2 - 提交3 - 提交4 比我工作时我注意到我在提交3和提交4上有问题我不想删除它们 - 所以我回到提交2并做一些工作并提交消息last_commit - 问题是当我推它我得到这条消息

error: failed to push some refs to 'git@gitlab.com:mo****/*******'
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.  

0 个答案:

没有答案