我正在為 Github 上的一個大專案做出貢獻,我為這個 PR 提交了 25 次提交,但我落后了 61 次提交,我需要對專案進行 rebase。
有一個不合并的政策,所以我不能合并它,我需要變基。每次我使用git pull輸出都是Everything up-to-date. 但并非所有內容都是最新的,因為我不想退出我的分叉,我想從主專案中獲得這 61 個提交。
uj5u.com熱心網友回復:
將上游倉庫添加為遠程倉庫,然后從中提取。例如:
$ git remote add upstream [email protected]:user/repo.git
$ git pull upstream main
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/512143.html
標籤:混帐github变基
