Skip to content

Commit d7e791c

Browse files
committed
Remove duplicate 'trunk' branch
svn git creates 'trunk' branch which points to the same commit as 'master' which is simpy misleading. Let's just remove it!
1 parent b441e68 commit d7e791c

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
9191
----
9292

9393
Now all the old branches are real Git branches and all the old tags are real Git tags.
94+
95+
Unfortunately `git svn` creates one extra branch named `trunk` for svn's trunk, which is essentially the same as the already created `master` branch (it actually refers to the same commit). Hence, let's remove this doublet:
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)