diff options
author | Jan Krüger <jk@jk.gs> | 2008-11-14 18:45:14 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-14 21:49:42 -0800 |
commit | 9e77353e0ea6e9e6d88ad1943570afb526d54a16 (patch) | |
tree | 01f4fbee8f6d54e43b45ad4b13f51f505bc04a0d /Documentation/git-svn.txt | |
parent | de07767faefc7ee08e1842b07106aaae55a1a6df (diff) | |
download | git-9e77353e0ea6e9e6d88ad1943570afb526d54a16.tar.gz |
Documentation: git-svn: fix example for centralized SVN clone
The example that tells users how to centralize the effort of the initial
git svn clone operation doesn't work properly. It uses rebase but that
only works if HEAD exists. This adds one extra command to create a
somewhat sensible HEAD that should work in all cases.
Signed-off-by: Jan Krüger <jk@jk.gs>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-svn.txt')
-rw-r--r-- | Documentation/git-svn.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt index 82d03b4ced..e160b99bdb 100644 --- a/Documentation/git-svn.txt +++ b/Documentation/git-svn.txt @@ -522,6 +522,8 @@ have each person clone that repository with 'git-clone': git remote add origin server:/pub/project git config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*' git fetch +# Create a local branch from one of the branches just fetched + git checkout -b master FETCH_HEAD # Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server) git svn init http://svn.example.com/project # Pull the latest changes from Subversion |