From b1fccde5a5d6d9eece3886ce5cb9dc7b9027bee2 Mon Sep 17 00:00:00 2001 From: Leon Brocard Date: Fri, 19 Dec 2008 17:05:11 +0000 Subject: In the patch section, show how to work on a temporary branch --- pod/perlrepository.pod | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pod') 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. -- cgit v1.2.1