[英]Equivalent command of “Sync” on Github windows
您好,在Windows的Github上,您可以選擇以下選項: 同步
當我想使用git bash時,我不知道這個“同步”的等效項
我的意思是我必須進入Differents分支,並且我想用master更新我的分支。
不是簡單的拉動,我也想使用rebase。
似乎按鈕“ sync”執行恢復操作,那么等效的命令提示符是什么?
如果我使用git pull --rebase
我有:
There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> foundation_grunt
如果您想重新設置分支基礎,使其基於當前的master
:
git fetch
git rebase master
如果要合並從master
到分支的更改:
git fetch
git merge master
我不知道哪個等同於“同步”,但是我通常從master
,checkout master
分支分支,然后合並我的分支,因為我發現這通常導致最干凈的歷史記錄。 我從事的主要項目使用此模型 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.