Documentation: git-svn: fix example for centralized SVN clone
[gitweb.git] / Documentation / git-svn.txt
index 82d03b4ced9cb7e34feca325d0ac7b41923de976..e160b99bdb1ab66ce178c67b5a1d487397b68318 100644 (file)
@@ -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