Open anniehuang921 opened 9 years ago
(master) git pull origin 20150423ACrawlerADay 這個請用git fetch origin 20150423ACrawlerADay:20150423ACrawlerADay ,因為pull是fetch +merge,有機會污染到master
(master) git checkout -b"20150423ACrawlerADay"這個不用加 -b ,-b也許會開成master的branch
謝謝!Y(^_^)Y
補充 git fetch < remote > < rbranch >:< lbranch > git checkout < lbranch >
... where
前情提要: 之前已經有master 和一些額外的分支,並且有push分支上去
master--20150423ACrawlerADay
希望在20150423ACrawlerADay再做分支
我的做法
(master) git pull origin 20150423ACrawlerADay (master) git checkout -b"20150423ACrawlerADay" (20150423ACrawlerADay) git checkout -b"20150423ACrawlerADay_mingyi" (20150423ACrawlerADay_mingyi) ...add commit (20150423ACrawlerADay_mingyi) git push 20150423ACrawlerADay_mingyi