path: root/README
diff options
authorJonas Smedegaard <>2008-02-25 16:28:25 +0100
committerJonas Smedegaard <>2008-02-25 16:28:25 +0100
commitba721853a6f276019eb7f8c5b4a31d3c11a7f836 (patch)
tree8e2f12d7c490bd1fc6c70f6ba4347bae724af7c0 /README
parent54bf1a8f8093cccf83f3b658ee33d7a63c44f2e2 (diff)
Add notes on forking a multi-branched repository.
Diffstat (limited to 'README')
1 files changed, 10 insertions, 0 deletions
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):