Kev hloov pauv (qee zaum hu ua SVN) yog qhov qhib qhov system uas nco txog txhua qhov kev hloov pauv koj ua rau cov ntaub ntawv thiab cov npe. Cov kab ke no muaj txiaj ntsig zoo thaum koj xav taug qab cov kev hloov pauv ntawm cov ntaub ntawv dhau sijhawm lossis rov kho dua cov ntawv qub. Pib nrog thawj kauj ruam rau cov lus qhia ntxaws txog kev txhim kho Subversion ntawm Mac OS X.
Kauj ruam
Ntu 1 ntawm 2: Txhim Kho Cov Txheej Txheem los ntawm Pob Binary
Kauj Ruam 1. Mus ntsib
Ntawm nplooj ntawv ntawd, koj yuav pom tus lej ntawm cov ntawv rub tawm tau, txhua qhov sib txawv raws qhov xav tau. Xaiv cov binary uas zoo tshaj rau koj cov kev xav tau.
Kauj ruam 2. Extract lub
pkg download tau. Cov ntaub ntawv teeb tsa Subversion yuav raug tsim ntawm lub desktop tom qab ntawd. Nyem ob npaug rau cov ntawv thiab ua raws cov txheej txheem teeb tsa raws li qhia.
Kauj Ruam 3. Qhib Terminal uas nyob hauv “Utilities” nplaub tshev
Xwb, tshawb rau Terminal ntawm Tsom teeb. Nkag mus rau cov npe hauv qab no hauv [username] $ hais kom ua:
-
svn [nkag mus]
-
Yog tias qhov lus txib rov qab teb "Hom 'svn pab' rau kev siv", Kev thim rov qab ua haujlwm tau zoo.
-
Yog/usr/local/bin tsis muaj nyob hauv phau ntawv teev npe, kho cov ntaub ntawv.profile thiab ntxiv kab hauv qab no:
export PATH = $ PATH:/usr/local/bin
-
Qhib lub qhov rai Terminal tshiab thiab sim nkag mus rau cov lus txib hauv qab no: svn [nkag mus]
Ntu 2 ntawm 2: Teem Sijhawm Ib puag ncig Subversion
Kauj Ruam 1. Teeb SVN server
Koj xav tau lub server no los faib cov phiaj xwm Subversion.
Kauj Ruam 2. Khiav Terminal thiab tsim cov npe hu ua "svnroot" hauv cov npe nyiaj zoo li no:
mkdir swb
-
Hom: svnadmin tsim/Cov neeg siv/[koj lub npe siv]/svnroot
-
Server tau tsim tiav!
Kauj Ruam 3. Siv SVN server nrog Terminal
Koj tuaj yeem tshawb xyuas nws ntawm Terminal nrog cov lus txib hauv qab no: svn checkout file: /// Cov neeg siv/[koj lub npe siv]/svnroot
-
Rau kev nkag mus rau tej thaj chaw deb, qhib "ssh access" (hauv System Preferences/Sharing) thiab tshawb xyuas siv cov lus txib hauv qab no: svn checkout svn+ssh: //my.domain.com/Users/ [koj lub npe siv]/svnroot
Kauj Ruam 4. Teeb tsa Subversion manager program
Piv txwv li, svnX txhawb txhua lub khoos phis tawj ntawm Mac OS X los ntawm 10.5 txog 10.8. Koj tuaj yeem tau txais nws ntawm
Kauj Ruam 5. Khiav SVNx tom qab rub tawm, tom qab ntawd pom ob lub qhov rais npe "Ua Haujlwm Luam" "thiab" Cov chaw ".
Hauv qab "Cov Chaw", ntxiv qhov URL thiab cov ntaub ntawv nkag los ntawm SVN server.
-
Qhib lub qhov rais. Yog tias koj tau txais cov lus yuam kev, tshawb xyuas koj tus ID nkag mus.
-
Hloov mus rau Terminal thiab hom: svn ntshuam -m "koj cov ntawv xa tuaj"/kuv/lub zos/phiaj xwm/txoj kev/kuv/chaw taws teeb/svn/chaw cia khoom. Cov lus txib no ntxiv txhua cov ntaub ntawv los ntawm txoj haujlwm hauv zos rau SVN server.
-
Ntxiv SVN cov chaw khaws khoom (los ntawm SVN server) rau cov npe hauv "Ua Haujlwm Luam" qhov rai ntawm SVNx.
Kauj Ruam 6. Hauv SVNx, qhib daim ntawv theej ua haujlwm ntawm daim ntawv/daim ntawv
Thaum ua haujlwm ntawm txoj haujlwm no, koj tuaj yeem pom kev hloov pauv hauv SVNx qhov rai.
Kauj Ruam 7. Kuaj cov ntawv
Hloov kho me me rau daim ntawv theej ntawm cov ntawv/ntawv, tom qab ntawd hloov kho cov ntawv hauv "Ua Haujlwm Luam" qhov rai.
SVNx qhia txhua cov ntaub ntawv nrog kev hloov kho. Ntaus lub pob "Ua phem" ntxiv nws rau SVN server chaw cia khoom
Kauj Ruam 8. Yog tias koj xav ua haujlwm ntawm cov ntaub ntawv/ntaub ntawv hauv Subversion repository ncaj qha los ntawm Finder, nws yog lub tswv yim zoo los siv SCPlugin lossis SVN Scripts for Finder
Lub tswv yim
- Qee cov ntaub ntawv ntxiv muaj nyob hauv "doc/" subdirectory of Subversion cov peev txheej. Nyeem cov ntawv "doc/README" kom paub ntau ntxiv.
- Subversion cov ntaub ntawv tseem ceeb yog phau ntawv pub dawb hu ua Version Control with Subversion lossis The Subversion Book. Koj tuaj yeem tau txais nws los ntawm