summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorLeon Brocard <acme@astray.com>2008-12-19 17:05:11 +0000
committerLeon Brocard <acme@astray.com>2008-12-19 17:05:11 +0000
commitb1fccde5a5d6d9eece3886ce5cb9dc7b9027bee2 (patch)
treee7265e70270ae8469503f5c451e47ca534eb8c02 /pod
parentc2cf2042fe2e21eb73dcdef54aa1b0e379ae413d (diff)
downloadperl-b1fccde5a5d6d9eece3886ce5cb9dc7b9027bee2.tar.gz
In the patch section, show how to work on a temporary branch
Diffstat (limited to 'pod')
-rw-r--r--pod/perlrepository.pod14
1 files changed, 14 insertions, 0 deletions
diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod
index b2b367334a..e29b05fd72 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.