From: Peter Harris <git@peter.is-a-geek.org>
To: git@vger.kernel.org
Subject: [PATCH 2/2] Documentation/git-svn.txt: Fix "git clone" example
Date: Thu, 7 Feb 2008 09:52:31 -0500 (EST) [thread overview]
Message-ID: <alpine.OSX.1.00.0802070949080.314@mac.local> (raw)
Subject: [PATCH] Documentation/git-svn.txt: Fix "git clone" example
If you don't "git reset --hard" to create master, then the "git svn rebase"
step fails.
Also add "-s" to use a standard layout, and remove the bogus '=' from
the "git config" step.
Signed-off-by: Peter <git@peter.is-a-geek.org>
---
This time with a correctly spelled log message.
Documentation/git-svn.txt | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index f94d0f9..b293a66 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -455,16 +455,18 @@ have each person clone that repository with 'git clone':
------------------------------------------------------------------------
# Do the initial import on a server
- ssh server "cd /pub && git svn clone http://svn.foo.org/project
+ ssh server "cd /pub && git svn clone -s http://svn.foo.org/project
# Clone locally - make sure the refs/remotes/ space matches the server
mkdir project
cd project
git init
git remote add origin server:/pub/project
- git config --add remote.origin.fetch=+refs/remotes/*:refs/remotes/*
+ git config --add remote.origin.fetch +refs/remotes/*:refs/remotes/*
git fetch
# 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.foo.org/project
+ git svn init -s http://svn.foo.org/project
+# Check out the svn branch you want to work on
+ git reset --hard trunk
# Pull the latest changes from Subversion
git svn rebase
------------------------------------------------------------------------
--
1.5.3.7
next reply other threads:[~2008-02-07 14:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-07 14:52 Peter Harris [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-02-06 23:45 [PATCH 2/2] Documentation/git-svn.txt: Fix "git clone" example Peter Harris
2008-02-07 14:34 ` Karl Hasselström
2008-02-07 14:52 ` Peter Harris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.1.00.0802070949080.314@mac.local \
--to=git@peter.is-a-geek.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).