Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我现在在我的私人分支上(new01),
new01
将这个分支更新到主线(原点)中所做的所有更改的命令是什么?
我尝试了以下方法:
C:\GIT\abcd>git branch *new01 master C:\GIT\abcd>git fetch origin C:\GIT\abcd>git merge origin new01 Already up-to-date
但是分支new01还没有随着 master 的最新变化而更新。
You should go to your branch and merge like this
git checkout new01 get merge origin
this will create a new commit into your branch new01.