且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何更新具有某些提交的未接受拉请求的分叉存储库

更新时间:2022-03-16 04:51:37

我解决了制作问题

git push origin 13.0 --force

rebase命令更改存储库的历史记录.提交将更改哈希并丢失祖先节点.然后,必须使用push --force将服务器历史记录替换为您当前的服务器历史记录.

The rebase command change the history of the repository. Commits will change hash and lose the ancestry nodes. Then it is neccessary to make push --force to replace the server history with your current one.

仅当具有相同分支结帐的一个以上的人时,推力才有风险.除此之外,应该没事.

Push force is only risky when there is more than one person with the same branch checkout. Other than this, should be ok.