[英]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.