From: Björn Steinbrink Date: Thu, 06 Nov 2008 10:24:25 GMT Subject: Re: How to rebase for git svn? Message-ID: <20081106102425.GA4192@atjola.homenet> In-Reply-To: On 2008.11.06 11:15:21 +0100, Sverre Rabbelier wrote: > On Thu, Nov 6, 2008 at 10:55, Eric Wong wrote: > > Yang Zhang wrote: > >> Thanks in advance for any help! > > > > Try passing --rebase or --squash with "git pull" to keep history linear > > for SVN. > > Consider doing the following: > git config alias.repull "pull --rebase" > And then using 'git repull' instead of 'git pull'. Or set branch..rebase in your config and just use "git pull" ;-) Setting branch.autosetuprebase might also be useful in that case. You should be careful to make sure that the other side does not lag behind WRT svn, though. Otherwise, you end up rebasing commits that corresponds to svn revisions. Bad. Björn