From: Leon Brocard Date: Fri, 19 Dec 2008 16:19:59 +0000 (+0000) Subject: Show how to switch between branches X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0908149504b99e64ba9a603f4d02aa9bcf3ced7a;p=p5sagit%2Fp5-mst-13.2.git Show how to switch between branches --- diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index 487ffa4..ed75449 100644 --- a/pod/perlrepository.pod +++ b/pod/perlrepository.pod @@ -72,7 +72,8 @@ Once you have changed into the repository directory, you can inspect it. The repository contains a few branches: - % git branch -a * blead + % git branch -a + * blead origin/HEAD origin/blead ... @@ -80,9 +81,15 @@ The repository contains a few branches: You can see recent commits: % git log - ... And pull new changes from the repository: % git pull - ... + +To switch to another branch: + + % git checkout origin/maint-5.8-dor + +To switch back to blead: + + % git checkout blead