Skip to content

Commit cd2ea24

Browse files
leessang01lethee
authored andcommitted
fix misspellings and wrong example code
detail: issue #129
1 parent 8dedca9 commit cd2ea24

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ This is actually a Subversion feature called “peg-revisions”, which is somet
144144
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.
145145
If you do not care anymore about the peg-revisions, simply remove them:
146146
//////////////////////////
147-
대개 Subversion에서는 브랜치 하나만 보일 진데 `@xxx` (xxx는 숫자) 문자로 끝나는 몇가지 브랜치가 더 보일 것이다.
148-
이런 이름의 브랜치가 존재하는 것은 "peg-revisions" 이라 부르는 Subversion의 기능 때문이며 Git에서는 마땅이 대응되는 기능이 없다.
149-
Subversion에서 peg-revision을 다루기 위해 브랜치 이름 뒤에 버전 숫자를 붙인 것 처럼 `git snv` 역시 그렇게 하는 것이다.
147+
대개 Subversion에서는 브랜치 하나만 보일 진데 `@xxx` (xxx는 숫자) 문자로 끝나는 몇 가지 브랜치가 더 보일 것이다.
148+
이런 이름의 브랜치가 존재하는 것은 "peg-revisions" 이라 부르는 Subversion의 기능 때문이며 Git에서는 마땅히 대응되는 기능이 없다.
149+
Subversion에서 peg-revision을 다루기 위해 브랜치 이름 뒤에 버전 숫자를 붙인 것 처럼 `git svn` 역시 그렇게 하는 것이다.
150150
peg-revision 기능을 사용하지 않는다면 그냥 브랜치를 삭제하면 된다.
151151

152152
[source,console]
153153
----
154-
$ git branch -d trunk
154+
$ for p in $(git for-each-ref --format='%(refname:short)' | grep @); do git branch -D $p; done
155155
----
156156

157157
//////////////////////////
@@ -192,6 +192,7 @@ Because you want all your branches and tags to go up, you can now run this:
192192

193193
[source,console]
194194
----
195+
$ git push origin --all
195196
$ git push origin --tags
196197
----
197198

0 commit comments

Comments
 (0)