Yuav Ua Li Cas Nruab Subversion ntawm Mac OS X

Cov txheej txheem:

Yuav Ua Li Cas Nruab Subversion ntawm Mac OS X
Yuav Ua Li Cas Nruab Subversion ntawm Mac OS X

Video: Yuav Ua Li Cas Nruab Subversion ntawm Mac OS X

Video: Yuav Ua Li Cas Nruab Subversion ntawm Mac OS X
Video: Иностранный легион, бесчеловечная вербовка! 2024, Kaum ib hlis
Anonim

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

Nruab Subversion ntawm Mac OS X Kauj Ruam 1
Nruab Subversion ntawm Mac OS X Kauj Ruam 1

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.

Nruab Subversion ntawm Mac OS X Kauj Ruam 2
Nruab Subversion ntawm Mac OS X Kauj Ruam 2

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.

Nruab Subversion ntawm Mac OS X Kauj Ruam 3
Nruab Subversion ntawm Mac OS X Kauj Ruam 3

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]

    Nruab Subversion ntawm Mac OS X Kauj Ruam 3Bullet1
    Nruab Subversion ntawm Mac OS X Kauj Ruam 3Bullet1
  • Yog tias qhov lus txib rov qab teb "Hom 'svn pab' rau kev siv", Kev thim rov qab ua haujlwm tau zoo.

    Nruab Subversion ntawm Mac OS X Kauj Ruam 3Bullet2
    Nruab Subversion ntawm Mac OS X Kauj Ruam 3Bullet2
  • Yog/usr/local/bin tsis muaj nyob hauv phau ntawv teev npe, kho cov ntaub ntawv.profile thiab ntxiv kab hauv qab no:

    Nruab Subversion ntawm Mac OS X Kauj Ruam 3Bullet3
    Nruab Subversion ntawm Mac OS X Kauj Ruam 3Bullet3

    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]

    Nruab Subversion ntawm Mac OS X Kauj Ruam 3Bullet4
    Nruab Subversion ntawm Mac OS X Kauj Ruam 3Bullet4

Ntu 2 ntawm 2: Teem Sijhawm Ib puag ncig Subversion

Nruab Subversion ntawm Mac OS X Kauj Ruam 4
Nruab Subversion ntawm Mac OS X Kauj Ruam 4

Kauj Ruam 1. Teeb SVN server

Koj xav tau lub server no los faib cov phiaj xwm Subversion.

Nruab Subversion ntawm Mac OS X Kauj Ruam 5
Nruab Subversion ntawm Mac OS X Kauj Ruam 5

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

    Nruab Subversion ntawm Mac OS X Kauj Ruam 5Bullet1
    Nruab Subversion ntawm Mac OS X Kauj Ruam 5Bullet1
  • Server tau tsim tiav!

    Nruab Subversion ntawm Mac OS X Kauj Ruam 5Bullet2
    Nruab Subversion ntawm Mac OS X Kauj Ruam 5Bullet2
Nruab Subversion ntawm Mac OS X Kauj Ruam 6
Nruab Subversion ntawm Mac OS X Kauj Ruam 6

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

    Nruab Subversion ntawm Mac OS X Kauj Ruam 6Bullet1
    Nruab Subversion ntawm Mac OS X Kauj Ruam 6Bullet1
Nruab Subversion ntawm Mac OS X Kauj Ruam 7
Nruab Subversion ntawm Mac OS X Kauj Ruam 7

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

Nruab Subversion ntawm Mac OS X Kauj Ruam 8
Nruab Subversion ntawm Mac OS X Kauj Ruam 8

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.

    Nruab Subversion ntawm Mac OS X Kauj Ruam 8Bullet1
    Nruab Subversion ntawm Mac OS X Kauj Ruam 8Bullet1
  • 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.

    Nruab Subversion ntawm Mac OS X Kauj Ruam 8Bullet2
    Nruab Subversion ntawm Mac OS X Kauj Ruam 8Bullet2
  • Ntxiv SVN cov chaw khaws khoom (los ntawm SVN server) rau cov npe hauv "Ua Haujlwm Luam" qhov rai ntawm SVNx.

    Nruab Subversion ntawm Mac OS X Kauj Ruam 8Bullet3
    Nruab Subversion ntawm Mac OS X Kauj Ruam 8Bullet3
Nruab Subversion ntawm Mac OS X Kauj Ruam 9
Nruab Subversion ntawm Mac OS X Kauj Ruam 9

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.

Nruab Subversion ntawm Mac OS X Kauj Ruam 10
Nruab Subversion ntawm Mac OS X Kauj Ruam 10

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

Nruab Subversion ntawm Mac OS X Kauj Ruam 11
Nruab Subversion ntawm Mac OS X Kauj Ruam 11

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

Pom zoo: