path: root/Documentation/git-svn.txt
diff options
authorFlorian Ragwitz <>2008-10-05 02:35:17 (GMT)
committerShawn O. Pearce <>2008-10-06 16:00:55 (GMT)
commit5de70efbd9236e44f122348ec2a1c2967d3bfde8 (patch)
tree3488927d5c472599d7ae4389441f46d85a163416 /Documentation/git-svn.txt
parent276328ffb87cefdc515bee5f09916aea6e0244ed (diff)
Add git-svn branch to allow branch creation in SVN repositories
[ew: fixed a warning to stderr causing t9108 to fail] Signed-off-by: Florian Ragwitz <> Signed-off-by: Deskin Miller <> Acked-by: Eric Wong <> Signed-off-by: Shawn O. Pearce <>
Diffstat (limited to 'Documentation/git-svn.txt')
1 files changed, 23 insertions, 1 deletions
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 82d03b4..84c8f3c 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -149,6 +149,22 @@ and have no uncommitted changes.
is very strongly discouraged.
+ Create a branch in the SVN repository.
+ Allows to specify the commit message.
+ Create a tag by using the tags_subdir instead of the branches_subdir
+ specified during git svn init.
+ Create a tag in the SVN repository. This is a shorthand for
+ 'branch -t'.
This should make it easy to look up svn log messages when svn
users refer to -r/--revision numbers.
@@ -372,7 +388,8 @@ Passed directly to 'git-rebase' when using 'dcommit' if a
-This can be used with the 'dcommit' and 'rebase' commands.
+This can be used with the 'dcommit', 'rebase', 'branch' and 'tag'
For 'dcommit', print out the series of git arguments that would show
which diffs would be committed to SVN.
@@ -381,6 +398,9 @@ For 'rebase', display the local branch associated with the upstream svn
repository associated with the current branch and the URL of svn
repository that will be fetched from.
+For 'branch' and 'tag', display the urls that will be used for copying when
+creating the branch or tag.
@@ -498,6 +518,8 @@ Tracking and contributing to an entire Subversion-managed project
git svn clone -T trunk -b branches -t tags
# View all branches and tags you have cloned:
git branch -r
+# Create a new branch in SVN
+ git svn branch waldo
# Reset your master to trunk (or any other branch, replacing 'trunk'
# with the appropriate name):
git reset --hard remotes/trunk