pull时候建议使用rebase方法

5 views
Skip to first unread message

Wei LIU

unread,
Oct 1, 2010, 12:56:20 AM10/1/10
to gitbo...@googlegroups.com
建议在pull的时候加上--rebase参数,这样在fetch之后就是执行rebase而不是merge了。

因为我们分工是明确的,所以用rebase保持历史的线性向前比较好。

--
Twitter: @iliuw
Blog: http://blog.liuw.name

Peter

unread,
Oct 1, 2010, 1:00:38 AM10/1/10
to gitbo...@googlegroups.com

收到

2010/10/1 Wei LIU <li...@liuw.name>



--
liuhui998 blog http://liuhui998.com


Peter

unread,
Oct 1, 2010, 2:19:02 AM10/1/10
to gitbo...@googlegroups.com
我是这样做的:

git fetch liuw/master
git rebase -i liuw/master
git push origin/master

应和你那样做的是等效吧


2010/10/1 Peter <liuh...@gmail.com>

Wei LIU

unread,
Oct 1, 2010, 2:20:11 AM10/1/10
to gitbo...@googlegroups.com
2010/10/1 Peter <liuh...@gmail.com>:

> 我是这样做的:
>
> git fetch liuw/master
> git rebase -i liuw/master
> git push origin/master
>
> 应和你那样做的是等效吧
>

是的,等效的。

Reply all
Reply to author
Forward
0 new messages