Cov lus txib dab tsi tso cai rau koj tsim kev sib txuas ntawm lub chaw cia khoom hauv zos thiab chaw taws teeb?
Cov lus txib dab tsi tso cai rau koj tsim kev sib txuas ntawm lub chaw cia khoom hauv zos thiab chaw taws teeb?

Video: Cov lus txib dab tsi tso cai rau koj tsim kev sib txuas ntawm lub chaw cia khoom hauv zos thiab chaw taws teeb?

Video: Cov lus txib dab tsi tso cai rau koj tsim kev sib txuas ntawm lub chaw cia khoom hauv zos thiab chaw taws teeb?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Plaub Hlis Ntuj
Anonim

Koj execute lub git nyob deb ntxiv txib rau teeb tsa kev sib raug zoo nruab nrab koj local repository , thiab cov nyob deb Bitbucket chaw cia khoom . Qhov no lus txib yuav ntxiv Bitbucket chaw cia khoom URL nrog lub npe luv ntawm keeb kwm. Koj ces thawb koj hauv zos cog lus rau tus tswv ceg rau tus tswv ceg ntawm lub tej thaj chaw deb repository.

Hauv qhov no, dab tsi yog ib qho lus txib kom txuas koj lub chaw khaws ntaub ntawv hauv zos nrog koj qhov chaw cia khoom tshiab?

Ntxiv ib tshiab tej thaj chaw deb , siv tus git nyob deb ntxiv command rau terminal, ib tus phau ntawv koj repository yog khaws cia ntawm. Cov git nyob deb ntxiv lus txib siv ob lub ntsiab lus: A nyob deb npe, rau Piv txwv li, "keeb kwm" A nyob deb URL, uas koj tuaj yeem nrhiav tau ntawm Source sub tab ntawm koj Git rov.

Ib yam li ntawd, kuv yuav teeb tsa lub chaw cia khoom hauv zos li cas rau qhov chaw cia khoom nyob deb? 1 Teb

  1. Tsim qhov chaw cia tshiab ntawm GitHub.
  2. Qhib Git Bash.
  3. Hloov cov npe ua haujlwm tam sim no rau koj qhov project hauv zos.
  4. Pib pib cov npe hauv zos raws li Git repository.
  5. Ntxiv cov ntaub ntawv hauv koj qhov chaw cia khoom tshiab hauv zos.
  6. Muab cov ntaub ntawv uas koj tau ua rau hauv koj qhov chaw cia khoom hauv zos.

Ntxiv mus, dab tsi yog qhov chaw khaws cia hauv zos thiab tej thaj chaw deb hauv Git?

Yog kuv nkag siab yuam kev, Git muaj ob hom chaw khaws cia :ib npe hauv zos , lwm hu nyob deb . Git local repository yog tus uas peb yuav ua hauv zos hloov, feem ntau qhov no local repository yog nyob rau hauv peb lub computer. Git tej thaj chaw deb repository yog ib qho ntawm cov neeg rau zaub mov, feem ntau yog lub tshuab nyob ntawm 42 mais deb.

Kuv yuav txuas mus rau qhov chaw khaws cia Git li cas?

Nruab git ntawm nyob deb server hais qee qhov piv txwv ec2.

Tam sim no hauv koj lub tshuab hauv zos, $cd rau hauv qhov project folder uas koj xav thawb kom git ua cov lus txib hauv qab no:

  1. git ib.
  2. git tej thaj chaw deb ntxiv keeb kwm [email tiv thaiv]:/home/ubuntu/workspace/project. git.
  3. git ua add.
  4. git commit -m "Initial commit"

Pom zoo: