<分区>
我将一些 repo fork 到我的个人资料中,然后进行更改并将更改推送到分支名称 dev_branch
下的我的个人资料中。使用此分支,我向源代码库的 staging
分支提出了 pull 请求。所有者现在希望在 merge 之前进行一些更改。我应该如何更新 pull 请求以 merge 请求的更改?
这里问的问题完全相同:How to update a pull request from forked repo? .但这对我不起作用。
当我尝试推送到我的个人远程仓库时,出现以下错误:
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 commit --amend
然后尝试推送 git push -u origin dev_branch
。它仍然给出相同的错误。
我也试过这个 Gist :https://gist.github.com/lolindrath/4454638 .仍然是同样的错误。
这到底是怎么回事? github真的支持--amend
吗?
注意:如果重要的话,我的消息中没有 commit-id。