From: Ævar Arnfjörð Bjarmason Date: Tue, 20 Apr 2010 18:04:30 +0000 (+0000) Subject: Don't tell the reader to `git checkout origin/*' X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6053d6bc11958e181df09a1ea3fe94201e2c2896;p=p5sagit%2Fp5-mst-13.2.git Don't tell the reader to `git checkout origin/*' This results in a branchless checkout (detached HEAD). Making changes like this is a valid way to use Git, but IMO not something we should be recommending. Branches are cheap and it's harder to lose your commits if they're on a named branch than on a detached HEAD. --- diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index 887e84e..bd2c207 100644 --- a/pod/perlrepository.pod +++ b/pod/perlrepository.pod @@ -176,10 +176,6 @@ Neither of these last two commands will update your working directory, however both will update the remote-tracking branches in your repository. -To switch to another branch: - - % git checkout origin/maint-5.8-dor - To make a local branch of a remote branch: % git checkout -b maint-5.10 origin/maint-5.10