linux svn????
???????????? ???????[ 2014/3/12 16:03:20 ] ????????linux svn
1???????checkout????????
svn checkout path??path??????????????
???磺svn checkout svn://192.168.1.1/pro/domain
??д??svn co
2?????汾????????μ????
svn add file
???磺svn add test.php(???test.php)
svn add *.php(????????????е?php???)
3?????????????????汾??
svn commit -m “LogMessage“ [-N] [--no-unlock] PATH(??????????????????–no-unlock????)
???磺svn commit -m “add test file for my test“ test.php
??д??svn ci
4??????/????
svn lock -m “LockMessage“ [--force] PATH
???磺svn lock -m “lock test file“ test.php
svn unlock PATH
5?????μ?????汾
svn update -r m path
???磺
svn update???????????????????????????????μ?????????????μ??°汾??
svn update -r 200 test.php(???汾???е????test.php??????汾200)
svn update test.php(???£???汾?????????????????????????????????????????????update????????????????svn resolved????????commit)
??д??svn up
6???????????????
1??svn status path?????μ?????????????????????????????
?????????svn??????У?M???????????C???????????A??????????汾??K??????????
2??svn status -v path(??????????????)
????б?????????????????????汾??????????????????????????汾?????????
???svn status??svn diff?? svn revert????????????????????????????????е???????svn??????.svn?б????????汾??????????
??д??svn st
7????????
svn delete path -m “delete test fle“
???磺svn delete svn://192.168.1.1/pro/domain/test.php -m “delete test file”
???????svn delete test.php ?????svn ci -m ‘delete test file‘????????????
??д??svn (del?? remove?? rm)
8???????
svn log path
???磺svn log test.php ??????????????????????????汾???仯
9?????????????
svn info path
???磺svn info test.php
10????????
svn diff path(???????????????汾???)
???磺svn diff test.php
svn diff -r m:n path(??汾m??汾n??????)
???磺svn diff -r 200:201 test.php
??д??svn di
11?????????汾?????????????????
svn merge -r m:n path
???磺svn merge -r 200:205 test.php?????汾200??205?????????????????????????????????????????????£?
12??SVN ????
svn help
svn help ci
——————————————————————————
?????????????????д?????????????
——————————————————————————
13???汾???μ?????????б?
svn list path
???path???μ?????????汾??????????
??д??svn ls
14??????????汾?????μ?????
svn mkdir: ????????汾?????μ???????
?÷?: 1??mkdir PATH…
2??mkdir URL…
?????汾?????????
1??????????????? PATH ?????????????????????????????????
????????????ε?????
2???????URL???????????????????????????д?????
????????????£????е??м?????????????????
15????????????
svn revert: ?????δ?????????????? (??????????????)??revert:
?÷?: revert PATH…
???: ???????????????磬?????????????????????????????
?????????
16???????URL???
svn switch (sw): ???1??????????????URL??
?÷?: 1??switch URL [PATH]
2??switch –relocate FROM TO [PATH...]
1?????????????????????????μ?URL?????????“svn update”???????
?????????????????????????????????????????????????????????????
??????
2????д??????????URL????????????????URL????????????URL??
(???緽?????????????????)??????????????????????????????????
?????????1???????????????????
17????????
svn resolved: ??????????????????????“???”????
?÷?: resolved PATH…
???: ?????????????????????????????????????????????????
????????????? PATH ???????????
18?????????????URL???????
svn cat ???[@?汾]…????????汾???????????汾????????
svn cat -r PREV filename > filename (PREV ??????汾???????д????汾??????????????????????)
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11