This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't tell the reader to `git checkout origin/*'
authorÆvar Arnfjörð Bjarmason <avar@cpan.org>
Tue, 20 Apr 2010 18:04:30 +0000 (18:04 +0000)
committerÆvar Arnfjörð Bjarmason <avar@cpan.org>
Tue, 20 Apr 2010 18:29:46 +0000 (18:29 +0000)
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.

pod/perlrepository.pod

index 887e84e..bd2c207 100644 (file)
@@ -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