From a5d961b1376216eff69303bbf81355789785e234 Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Tue, 11 Oct 2016 01:49:42 +0000 Subject: git-svn: instructions for faster init initial svn clone takes ages. A faster way is to copy history from a git mirror. Document this. Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio/trunk@586 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- git-svn.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 git-svn.txt diff --git a/git-svn.txt b/git-svn.txt new file mode 100644 index 0000000..e094217 --- /dev/null +++ b/git-svn.txt @@ -0,0 +1,34 @@ +Using git svn with virtio svn repository: + +Initial clone (fetches all branches, takes a very long time): + git svn clone -s https://tools.oasis-open.org/version-control/svn/virtio +Pull: + git svn rebase +Push: + git svn dcommit + +Tagging 1.0 cs02 to match the released specification: + git branch -t v1.0-cs02 + +Updating the trunk with all changes made on 1.0 branch: + + git config --global svn.pushmergeinfo true + git checkout -b master origin/trunk + git svn fetch + git svn rebase -l + git merge --no-ff origin/v1.0 + [ resolve merge conflicts ] + git svn dcommit + +Faster initial clone from git mirror (example using mst's mirror at kernel.org): + + git clone git://git.kernel.org/pub/scm/virt/kvm/mst/virtio-text.git + cd virtio-text + git config --remove-section remote.origin + git svn init -s https://tools.oasis-open.org/version-control/svn/virtio + git svn rebase + git checkout -b trunk origin/trunk + +Updating a git mirror from git-svn repository (after setting up a +remote named "mirror"): + git push mirror --prune +refs/remotes/origin/*:refs/heads/* -- cgit v1.2.3