Skip to content

Commit dcd1137

Browse files
committed
Merge pull request #489 from mkarg/patch-2
Remove duplicate 'trunk' branch
2 parents c223778 + d4bdb6f commit dcd1137

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

book/09-git-and-other-scms/sections/import-svn.asc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ $ rm -Rf .git/refs/remotes/origin
9191
----
9292

9393
Now all the old branches are real Git branches and all the old tags are real Git tags.
94+
95+
There's one last thing to clean up. Unfortunately, `git svn` creates an extra branch named `trunk`, which maps to Subversion's default branch, but the `trunk` ref points to the same place as `master`. Since `master` is more idiomatically Git, here's how to remove the extra branch:
96+
97+
[source,console]
98+
----
99+
$ git branch -d trunk
100+
----
101+
94102
The last thing to do is add your new Git server as a remote and push to it.
95103
Here is an example of adding your server as a remote:
96104

0 commit comments

Comments
 (0)