[英]git rebasing from local branch off remote branch
我有一個本地分支test
,我想重新關閉遠程分支test
,我該怎么做? 我已經嘗試過git rebase origin test
,但是有人在不久前推出的更改並沒有被重新引入我的本地?
您必須首先從服務器獲取數據(這不會影響您的分支,但會使用遠程更改更新分支origin/test
)。
git fetch
然后你可以做你的rebase
git rebase origin/test
您現在可以推動您的分支test
git push origin test
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.