Cov txheej txheem:

Kuv yuav hloov kho kuv Git li cas?
Kuv yuav hloov kho kuv Git li cas?

Video: Kuv yuav hloov kho kuv Git li cas?

Video: Kuv yuav hloov kho kuv Git li cas?
Video: Koj ua kuv neej tawg los kuv yuav ua kom koj neej piam Part 2 1/11/2021 2024, Kaum ib hlis
Anonim

Hloov tshiab, tom qab ntawd Ua Haujlwm

  1. Hloov kho koj local repo los ntawm tus central repo ( git rub tawm tus tswv).
  2. Ua edits, txuag, git add, thiab git cog lus tag nrho hauv koj zos repo.
  3. Thawb hloov pauv los ntawm lub zos repo mus rau koj fork ntawm github.com ( git push origin master)
  4. Hloov kho cov central repo los ntawm koj diav rawg (Pull Request)
  5. Rov ua dua.

Tsis tas li, kuv yuav hloov kho git bash ntawm Windows li cas?

Nruab lossis hloov kho Git ntawm Windows

  1. Xaiv qhov Option 2, Khiav Git los ntawm Windows Command Prompt, lossis Option 3, Khiav Git thiab suav nrog Unix cov cuab yeej los ntawm Windows Command Prompt.
  2. Tsis txhob xaiv 1, Siv Git Bash nkaus xwb, thaum txhim kho lossis hloov kho Git rau Crucible server - qhov no yuav tsis ua haujlwm nrog Crucible.

Ib tug kuj yuav nug, dab tsi yog kuv Git version tam sim no? Tshawb xyuas koj version ntawm Git Koj ua tau kuaj koj tam sim no version ntawm Git los ntawm kev khiav git -- version hais kom ua hauv lub davhlau ya nyob twg (Linux, Mac OS X) lossis hais kom ua (Windows). Yog tias koj tsis pom ib qho kev txhawb nqa version ntawm Git , koj yuav tsum tau upgrade Git los yog ua ib qho tshiab nruab, raws li tau piav qhia hauv qab no.

Ib yam li ntawd, kuv yuav hloov kho Mintty li cas?

  1. Txhawm rau hloov cov pob mintty nrog msys2, muab mintty.exe nyob rau hauv phau ntawv qhia MSYS2_ROOT/usr/bin los hloov qhov qub. -
  2. Cov lus ceeb toom ntxiv: koj tuaj yeem pom msys-2.0.dll hauv msys2-runtime--.pkg.tar, hauv cov ntawv txuas rau hauv cov lus teb. -

Kuv yuav ua li cas rov kho qhov chaw cia Git hauv zos?

Hloov tshiab, tom qab ntawd Ua Haujlwm

  1. Hloov kho koj lub zos repo los ntawm lub hauv paus repo (git rub upstream tus tswv).
  2. Ua kev hloov kho, txuag, git ntxiv, thiab git ua txhua yam hauv koj qhov chaw repo.
  3. Push hloov los ntawm lub zos repo rau koj diav rawg ntawm github.com (git push origin master)
  4. Hloov kho lub hauv paus repo los ntawm koj rab diav rawg (Pull Request)
  5. Rov ua dua.

Pom zoo: