summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-03-24 22:02:02 +0000
committerDavid Mitchell <davem@iabyn.com>2010-03-24 22:02:02 +0000
commit33e5002f3018c3b84d4e92b5606666ab436dfd9b (patch)
tree572b18f62d1ee00ef0610ee40ceaff06ec5fd607
parent8c3c028a261ab8dd47b0135c7924610685d56b0f (diff)
downloadperl-33e5002f3018c3b84d4e92b5606666ab436dfd9b.tar.gz
describe how to create a remote topic branch
-rw-r--r--pod/perlrepository.pod16
1 files changed, 16 insertions, 0 deletions
diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod
index 29d53cc409..25bfaa29eb 100644
--- a/pod/perlrepository.pod
+++ b/pod/perlrepository.pod
@@ -774,6 +774,22 @@ Individual committers should create topic branches under
B<yourname>/B<some_descriptive_name>. Other committers should check
with a topic branch's creator before making any change to it.
+A remote topic branch can be created as follows. First, create and
+checkout a local branch. Do some work on it, then when you're ready, push
+the local branch to the remote repository and update the local branch
+to make it track.
+
+ $ branch="$user/$topic"
+ $ git checkout -b $branch
+ ... do local edits, commits etc ...
+ $ git push origin $branch:refs/heads/$branch
+ $ git config branch.$branch.remote origin
+ $ git config branch.$branch.merge refs/heads/$branch
+
+Note that there are many ways to create remote branches, this is just one
+relatively straightforward way that should work with most git versions and
+configurations.
+
If you are not the creator of B<yourname>/B<some_descriptive_name>, you
might sometimes find that the original author has edited the branch's
history. There are lots of good reasons for this. Sometimes, an author