diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-02-25 16:28:25 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-02-25 16:28:25 +0100 |
commit | ba721853a6f276019eb7f8c5b4a31d3c11a7f836 (patch) | |
tree | 8e2f12d7c490bd1fc6c70f6ba4347bae724af7c0 | |
parent | 54bf1a8f8093cccf83f3b658ee33d7a63c44f2e2 (diff) |
Add notes on forking a multi-branched repository.
-rw-r--r-- | README | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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): |