You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/09-git-and-other-scms/sections/import-svn.asc
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,12 @@ $ for b in $(git for-each-ref --format='%(refname:short)' refs/remotes); do git
91
91
It may happen that you'll see some extra branches which are suffixed by `@xxx` (where xxx is a number), while in Subversion you only see one branch.
92
92
This is actually a Subversion feature called ``peg-revisions'', which is something that Git simply has no syntactical counterpart for.
93
93
Hence, `git svn` simply adds the svn version number to the branch name just in the same way as you would have written it in svn to address the peg-revision of that branch.
94
-
If you do not care anymore about the peg-revisions, simply remove them using `git branch -d`.
94
+
If you do not care anymore about the peg-revisions, simply remove them:
95
+
96
+
[source,console]
97
+
----
98
+
$ for p in $(git for-each-ref --format='%(refname:short)' | grep @); do git branch -D $p; done
99
+
----
95
100
96
101
Now all the old branches are real Git branches and all the old tags are real Git tags.
0 commit comments