Linux??svn???????
???????????? ???????[ 2015/12/4 10:58:05 ] ?????????????? Linux
????????????????linux??svn????????÷???????????????????????????Щ???
????1??Linux????????????checkout????????
????svn checkout url??url???????????????
???????磺svn checkout svn://192.168.1.1/pro/domain
??????д??svn co
?????????????????????????????????????????????????????????????????????????????????
????2??Linux???????????汾????????μ????
????svn add file
???????磺svn add test.php(???test.php)
????svn add *.php(????????????е?php???)
?????????????????????????????????????д???????????????????????????????
????3??Linux??????????????????????汾??
????svn commit -m “LogMessage“ [-N] [--no-unlock] PATH(??????????????????–no-unlock????)
???????磺svn commit -m “add test file for my test“ test.php
??????д??svn ci
????4??Linux???????μ????/????
????svn lock -m “LockMessage“ [--force] PATH
???????磺svn lock -m “lock test file“ test.php
????svn unlock PATH
????5??Linux??????????μ?????汾
????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??Linux???????2????????????
????1??svn status path?????μ?????????????????????????????
?????????????svn??????У?M???????????C???????????A??????????汾??K??????????
????????????path??????????????????????????
????2??svn status -v path(??????????????)
????????б?????????????????????汾??????????????????????????汾?????????
???????svn status??svn diff?? svn revert????????????????????????????????е???????svn??????.svn?б????????汾??????????
??????д??svn st
????7??Linux??????????????
????svn delete url -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??Linux???????2????
????svn log path
???????磺svn log test.php ??????????????????????????汾???仯
????????????path?????????????????????????
????9??Linux???????2??????????
????svn info path
???????磺svn info test.php
????10??Linux???????±?????
????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??Linux??????????????汾?????????????????
????svn merge -r m:n path
???????磺svn merge -r 200:205 test.php?????汾200??205?????????????????????????????????????????????£?
????12??Linux????????SVN ????
????svn help
????svn help ci
?????????????????????д?????????????
????13??Linux???????°汾???μ?????????б?
????svn list path
???????path???μ?????????汾??????????
??????д??svn ls
????14??Linux???????′???????汾?????μ?????
????svn mkdir: ????????汾?????μ???????
?????÷?: 1??mkdir PATH…
????2??mkdir URL…
?????????汾?????????
????1??????????????? PATH ?????????????????????????????????????????????ε?????
????2???????URL???????????????????????????д???.????????????£????е??м?????????????????
????15??Linux?????????????????
????svn revert: ?????δ?????????????? (??????????????)??revert:
?????÷?: revert PATH…
???????: ???????????????磬??????????????????????????????????????
????16??Linux??????????????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??Linux?????????????
????svn resolved: ??????????????????????“???”????
?????÷?: resolved PATH…
???????: ?????????????????????????????????????????????????????????????? PATH ???????????
????18??Linux???????????????????URL???????
????svn cat ???[@?汾]…????????汾???????????汾????????
????svn cat -r PREV filename > filename (PREV ??????汾???????д????汾??????????????????????)
??????????????“url”??????????????£?????????????????????в?????
??????????Linux???????3???svn???????÷?????
??????
???·???
??????????????????
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