From: Jan Krüger Date: Fri, 14 Nov 2008 17:45:14 +0000 (+0100) Subject: Documentation: git-svn: fix example for centralized SVN clone X-Git-Tag: v1.6.1-rc1~7^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9e77353e0ea6e9e6d88ad1943570afb526d54a16;p=git.git 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 Acked-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt index 82d03b4ce..e160b99bd 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