From ba721853a6f276019eb7f8c5b4a31d3c11a7f836 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 25 Feb 2008 16:28:25 +0100 Subject: Add notes on forking a multi-branched repository. --- README | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README b/README index 4050872..3becd90 100644 --- a/README +++ b/README @@ -53,6 +53,16 @@ once, not on subsequent pushes) - like this: git config remote.origin.url git-reference-to-public-repository git push --all +To instead populate your newly created public repository with a multi-branched +local repository, first make a complete clone with all branches setup locally, +and push it all - like this for repository with master and master-da branches: + + git clone git-reference-to-old-public-repository some-temp-dir + cd some-temp-dir + git checkout -b master-da origin/master-da + git config remote.origin.url git-reference-to-public-repository + git push --all + To resyncronize an older fork of the repository with newer upstream changes, do like this (skip first command on subsequent updates): -- cgit v1.2.3