From: Alan Chandler Date: Thu, 29 Sep 2005 06:54:29 GMT Subject: Use of the -f flag on checkout Message-ID: <200509290754.30017.alan@chandlerfamily.org.uk> In-Reply-To: <7vbr2cmle2.fsf@assigned-by-dhcp.cox.net> On Thursday 29 Sep 2005 07:35, Junio C Hamano wrote: > Jeff Garzik writes: > > My question: is this the best/right way to pull one branch into > > another? It's been working for me, for months, but... > > Yes, that is how 'resolve' is designed to work. > > You could instead use standard 'git pull' from the local > repository. Here is what I usually do in git.git repository: > > $ git checkout foo > $ ... work in foo "topic" branch > $ git checkout bar > $ ... work in bar "topic" branch > $ git checkout pu I notice that Jeff is using the -f flag on checkout whereas you don't. What is the risk in not using it (ie what are the cases when you should use it)? -- Alan Chandler http://www.chandlerfamily.org.uk