gpt4 book ai didi

git - 如何修改对现有 Pull Request 的审查更改

转载 作者:太空狗 更新时间:2023-10-29 14:17:12 28 4
gpt4 key购买 nike

<分区>

我将一些 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。

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com