Cov txheej txheem:

Kuv yuav ua li cas ua ib daim ntawv hauv Terminal?
Kuv yuav ua li cas ua ib daim ntawv hauv Terminal?

Video: Kuv yuav ua li cas ua ib daim ntawv hauv Terminal?

Video: Kuv yuav ua li cas ua ib daim ntawv hauv Terminal?
Video: Nikki Thao - Kuv Mam Ua Ib Siab (Official Audio) 2024, Kaum ib hlis
Anonim

Txhawm rau sau git cog lus, pib los ntawm kev ntaus git cog lus ntawm koj lub Terminal lossis Command Prompt uas coj los ntawm Vim interface rau nkag mus rau cov lus cog lus

  1. Ntaus lub ntsiab lus ntawm koj cog lus ntawm thawj kab.
  2. Sau cov lus piav qhia ntxaws txog dab tsi tshwm sim hauv cog lus hloov.
  3. Nias Esc thiab tom qab ntawd ntaus: wq txuag thiab tawm.

Ib yam li ntawd, kuv yuav ua li cas ua ib daim ntawv hauv Git?

Qhov yooj yim Git flow zoo li no:

  1. Tsim cov ntaub ntawv tshiab hauv cov npe hauv paus lossis hauv subdirectory, lossis hloov kho cov ntaub ntawv uas twb muaj lawm.
  2. Ntxiv cov ntaub ntawv mus rau thaj chaw staging los ntawm kev siv "git add" hais kom ua thiab dhau cov kev xaiv tsim nyog.
  3. Muab cov ntaub ntawv mus rau lub chaw cia khoom hauv zos siv cov lus txib "git commit -m".
  4. Rov ua dua.

Qhov thib ob, Kuv yuav thawb cov ntaub ntawv mus rau GitHub li cas? Ntawm GitHub , mus rau nplooj ntawv tseem ceeb ntawm qhov chaw cia khoom. Hauv qab koj lub npe repository, nyem Upload cov ntaub ntawv . Luag thiab poob lub ntaub ntawv los yog folder koj xav tau upload mus rau koj qhov chaw khaws cia rau hauv ntaub ntawv tsob ntoo. Hauv qab ntawm nplooj ntawv, ntaus ntawv luv luv, muaj txiaj ntsig ua lus cog lus uas piav qhia txog kev hloov pauv koj tau ua rau ntaub ntawv.

Ntawm no, kuv yuav ua li cas rau Git code siv davhlau ya nyob twg?

Qhib Terminal . Hloov daim ntawv teev npe ua haujlwm tam sim no rau koj lub chaw khaws cia hauv zos. Theem cov ntaub ntawv rau cog lus mus rau koj lub chaw cia khoom hauv zos. $ git ntxiv.

Cov ntaub ntawv tseem ceeb tuaj yeem suav nrog, tab sis tsis txwv rau:

  1. Cov passwords.
  2. SSH cov yuam sij.
  3. AWS access keys.
  4. API cov yuam sij.
  5. Cov lej credit card.
  6. Tus lej PIN.

Yuav ua li cas kuv tawm ntawm git cog lus hauv davhlau ya nyob twg?

: nkag mus rau hom kev hais kom ua, w yog rau "sau" (txuag) thiab q yog rau " tawm ". Tej zaum koj yuav tau ntaus khiav ua ntej: wq rau tawm hom ntxig (vi yog hom raws li tus editor). Yog koj xav tau tawm tsis txuag ntaus khiav,:q! thiab nkag. git qhib koj lub neej ntawd editor kom koj tuaj yeem hloov kho cog lus lus.

Pom zoo: