Cov txheej txheem:

Dab tsi yog qhov feature ceg hauv git?
Dab tsi yog qhov feature ceg hauv git?

Video: Dab tsi yog qhov feature ceg hauv git?

Video: Dab tsi yog qhov feature ceg hauv git?
Video: TubZeb Vwj - Valentine's Day Yog Dab Tsi? - New MV Song 2022- Funny 2024, Hlis ntuj nqeg
Anonim

A feature ceg tsuas yog ib qho cais ceg hauv koj Git repo siv los siv ib leeg feature hauv koj qhov project.

Raws li, dab tsi yog kev txhim kho ceg hauv git?

A txhim kho ceg yog tsim los ntawm tus tswv. Kev tso tawm ceg yog tsim los ntawm txhim kho . Feature ceg yog tsim los ntawm txhim kho . Thaum ib tug feature tiav nws yog merged rau hauv lub txhim kho ceg . Thaum tso tawm ceg ua tiav nws yog merged rau hauv txhim kho thiab tus tswv.

Ib yam li ntawd, kuv yuav ua li cas thiaj tsim tau ib ceg feature hauv bitbucket? Tsim ib ceg los ntawm Bitbucket

  1. Los ntawm lub chaw cia khoom, nyem + hauv lub ntiaj teb sidebar thiab xaiv Tsim ib ceg hauv qab Tau mus ua haujlwm.
  2. Los ntawm cov popup uas tshwm sim, xaiv ib hom (yog tias siv tus qauv Branching), sau ib ceg npe thiab nyem Tsim.
  3. Tom qab koj tsim ib ceg, koj yuav tsum tau xyuas nws tawm ntawm koj lub hauv paus system.

Ib yam li ntawd, koj tuaj yeem nug, koj yuav tsim ib ceg li cas?

Feature ceg workflow

  1. Clone project: git clone [email tiv thaiv]:project-name.git.
  2. Tsim ceg nrog koj qhov tshwj xeeb: git checkout -b $feature_name.
  3. Sau code. Kev hloov pauv:
  4. Thawb koj ceg rau GitLab:
  5. Tshawb xyuas koj cov cai ntawm nplooj ntawv cog lus.
  6. Tsim kom muaj kev sib koom ua ke.
  7. Koj tus thawj coj pab pawg yuav tshuaj xyuas cov cai & sib koom ua ke rau hauv ceg loj.

Kuv yuav siv git ceg li cas?

Siv cov ceg ntoo rau rub thov

  1. Fork ib repository ntawm GitHub.
  2. Clone nws rau koj lub computer.
  3. Ua ib ceg thiab txav mus rau nws: git checkout -b fixingBranch.
  4. Hloov cov ntaub ntawv.
  5. Muab cov kev hloov pauv rau keeb kwm.
  6. Thawb cov ceg mus rau koj lub forked version: git push origin fixingBranch.

Pom zoo: