On Sun, Oct 14, 2007 at 09:18:16PM +0100, Johannes Schindelin wrote: > Hi, > > On Sun, 14 Oct 2007, Andreas Ericsson wrote: > > > J. Bruce Fields wrote: > > > > > Though actually the quickest way to checkout an arbitrary revision is > > > with detached heads, and that doesn't require learning git-branch > > > right away. > > > > But the *easiest* way, where "easiest" means "involves the fewest > > commands with smallest risk of fscking up your own repo", is to do > > > > > > git clone <other-devs-repo> other-devs-repo > > cd other-devs-repo > > git checkout -b thebug <the-bug-hash> > > I'd just do > > git checkout <the-bug>^{commit} > > and be done... The detached-HEAD approach also has the advantage that you don't leave around stuff (new branch heads) that may have to be cleaned up or modified in the future. So you can tell someone about git clone git://url/ git fetch origin git checkout <whatever> git remote add remotename git://other-url/ git fetch remotename and as long as they're not making changes, that's pretty much all they'll ever need to do to checkout any version. Sure, you can tell them to reclone every time, but I think they'll get frustrated with that pretty soon. --b. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html