From: Avery Pennarun Date: Sat, 26 Apr 2008 23:17:32 GMT Subject: Re: Merge *to* branch instead of merge *from* branch? Message-ID: <32541b130804261617y1fb2a8d9jf8fc6f58ca07b44f@mail.gmail.com> In-Reply-To: On 4/26/08, Peter Karlsson wrote: > Is there any way of not having to do the "git checkout master" first? > Basically I want a flag to merge or checkout saying that I want to merge my > branch into the branch I'm switching to. I can't seem to find any such flag. How about this? git merge master git branch -D master git branch master HEAD In other words, just make a copy of your current branch after merging and call it the new 'master'. That's all fast forwarding would do anyhow. Have fun, Avery