From: Leon Brocard Date: Fri, 19 Dec 2008 17:05:11 +0000 (+0000) Subject: In the patch section, show how to work on a temporary branch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b1fccde5a5d6d9eece3886ce5cb9dc7b9027bee2;p=p5sagit%2Fp5-mst-13.2.git In the patch section, show how to work on a temporary branch --- diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index b2b3673..e29b05f 100644 --- a/pod/perlrepository.pod +++ b/pod/perlrepository.pod @@ -105,6 +105,12 @@ Then change into the directory: % cd perl-git +First we need to create a temporary new branch for these changes and +switch into it: + + % git branch orange + % git checkout orange + Then make your changes. For example, if Leon Brocard changes his name to Orange Brocard, we should change his name in the AUTHORS file: @@ -155,3 +161,11 @@ You should now send an email to perl5-porters@perl.org with a description of your changes, and attach this patch file as an attachment. +If you want to delete your temporary branch, you may do so with: + + % git checkout blead + % git branch -d orange + error: The branch 'orange' is not an ancestor of your current HEAD. + If you are sure you want to delete it, run 'git branch -D orange'. + % git branch -D orange + Deleted branch orange.