From: David Mitchell Date: Wed, 24 Mar 2010 22:02:02 +0000 (+0000) Subject: describe how to create a remote topic branch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=33e5002f3018c3b84d4e92b5606666ab436dfd9b;p=p5sagit%2Fp5-mst-13.2.git describe how to create a remote topic branch --- diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index 29d53cc..25bfaa2 100644 --- a/pod/perlrepository.pod +++ b/pod/perlrepository.pod @@ -774,6 +774,22 @@ Individual committers should create topic branches under B/B. 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/B, 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