Git ua haujlwm directory nyob qhov twg?
Git ua haujlwm directory nyob qhov twg?

Video: Git ua haujlwm directory nyob qhov twg?

Video: Git ua haujlwm directory nyob qhov twg?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Kaum ib hlis
Anonim

Repositories tsim nrog cov git init command hu ua cov ntaub ntawv ua haujlwm . Nyob rau theem sab saum toj nplaub tshev ntawm lub repository koj yuav pom ob yam: A. git subfolder nrog tag nrho cov git ntsig txog kev hloov kho keeb kwm ntawm koj tus repo A ua haujlwm tsob ntoo, lossis tshawb xyuas cov ntawv luam ntawm koj qhov project files.

Nyob rau hauv txoj kev no, dab tsi yog qhov chaw ua haujlwm hauv git?

Raws li tau hais nyob rau hauv lub Git Cov ntaub ntawv: The ua hauj lwm directory yog ib qho checkout ntawm ib version ntawm qhov project. Qhov no tseem ceeb txhais tau tias yog tias koj kos tawm ib ceg (piv txwv li tus tswv) thiab tau zaum ntawm ib qho kev cog lus (piv txwv li HEAD), koj ua hauj lwm directory yog lub sij hawm "umbrella" rau tag nrho koj cov ntaub ntawv thiab folders.

Ib yam li ntawd, kuv daim ntawv teev npe ua haujlwm yog dab tsi? Qhov rai cov ntaub ntawv tam sim no Thaum nyob hauv Windows Explorer, lub cov ntaub ntawv ua haujlwm tam sim no yog pom nyob rau sab saum toj ntawm lub qhov rais Explorer nyob rau hauv cov ntaub ntawv chaw nyob bar. Piv txwv li, yog tias koj nyob hauv System32 nplaub tshev , koj yuav pom "C: WindowsSystem32" lossis "Computer> C:> WindowsSystem32" nyob ntawm koj qhov version ntawm Windows.

Ntxiv mus, qhov twg yog qhov git bash directory?

Git bash khiav saum lub bash plhaub, uas nyeem configuration los ntawm a. bashrc cov ntaub ntawv nyob hauv koj lub tsev phau ntawv (feem ntau C: Cov neeg siv thiab hu ua ~ / hauv bash ).

Kuv yuav hloov kuv cov npe ua haujlwm hauv git li cas?

Rau hloov qhov tam sim no ua hauj lwm directory , koj tuaj yeem siv "cd" hais kom ua (qhov "cd" sawv cev rau " hloov directory "). Piv txwv li, txav ib qho phau ntawv upward (hauv cov folders tam sim no niam txiv nplaub tshev ), koj tuaj yeem hu rau: $ cd..

Pom zoo: