summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de07767)
raw | patch | inline | side by side (parent: de07767)
author | Jan Krüger <jk@jk.gs> | |
Fri, 14 Nov 2008 17:45:14 +0000 (18:45 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 15 Nov 2008 05:49:42 +0000 (21:49 -0800) |
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>
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>
Documentation/git-svn.txt | patch | blob | history |
index 82d03b4ced9cb7e34feca325d0ac7b41923de976..e160b99bdb1ab66ce178c67b5a1d487397b68318 100644 (file)
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