From: John Szakmeister Date: Sat, 04 May 2013 13:17:13 GMT Subject: Re: Pitfalls in auto-fast-forwarding heads that are not checked out? Message-ID: In-Reply-To: On Sat, May 4, 2013 at 7:35 AM, Martin Langhoff wrote: [snip] > When I do git pull, git is careful to only update the branch I have > checked out (if appropriate). It leaves any other branches that track > branches on the remote that has just been fetched untouched. I always > thought that at some point git pull would learn to evaluate those > branches and auto-merge them if the merge is a ff. > > I would find that a natural bit of automation in git pull. Of course > it would mean a change of semantics, existing scripts could be > affected. I agree. I've been using this script for quite a while now: I've been pretty happy with it. It's not of my own design, I picked up from StackOverflow: And made a couple of minor tweaks to cope with my configuration (I have merge setup to not fast-forward merge by default). -John