Cov txheej txheem:

Kuv yuav rov qab ua li cas hloov pauv hauv Git cov ntaub ntawv?
Kuv yuav rov qab ua li cas hloov pauv hauv Git cov ntaub ntawv?

Video: Kuv yuav rov qab ua li cas hloov pauv hauv Git cov ntaub ntawv?

Video: Kuv yuav rov qab ua li cas hloov pauv hauv Git cov ntaub ntawv?
Video: Koj saib kuv tsis muaj nqis - Nkauj tawm tshiab 2021-22 2024, Hlis ntuj nqeg
Anonim

Tam sim no koj muaj 4 txoj hauv kev los tshem tawm koj cov kev hloov pauv:

  1. Unstage lub ntaub ntawv rau tam sim no cog lus (HEAD): git rov pib dua HEAD < ntaub ntawv >
  2. Unstage txhua yam - khaws cia kev hloov : git rov pib dua.
  3. Muab pov tseg tag nrho hauv zos kev hloov , tab sis txuag lawv rau yav tom ntej: git khaws cia.
  4. Tshem tawm txhua yam mus tas li: git rov pib dua --hard.

Kuj nug, kuv yuav ua li cas rov qab hloov cov ntaub ntawv?

Undo Hloov . Yog koj xav tau thim rov qab tag nrho kev hloov koj ua hauv ib ntaub ntawv txij li qhov hloov tshiab kawg koj yuav tsum xaiv cov ntaub ntawv , txoj nyem rau pop up cov ntawv qhia zaub mov thiab tom qab ntawd xaiv cov lus txib TortoiseSVN → Rov qab Ib tug dialog yuav pop up qhia koj lub cov ntaub ntawv uas koj tau hloov thiab ua tau rov qab los.

Ib yam li ntawd, koj yuav ua li cas tshem tawm qhov kev cog lus? Yog tias koj xav ua haujlwm tseem ceeb ntawm qhov kawg cog lus , koj tuaj yeem yooj yim git pib dua HEAD ^. Qhov no yuav thim rov qab tus cog lus (tev nws tawm) thiab rov qab kho qhov Performance index rau lub xeev nws tau ua ntej ntawd cog lus , tawm hauv phau ntawv teev npe ua haujlwm nrog cov kev hloov pauv uas tsis tau cog lus tseg, thiab koj tuaj yeem kho txhua yam koj xav tau los kho thiab sim dua.

Kuj Paub, Kuv yuav rov qab ua cov ntaub ntawv hauv Git li cas?

Tsis ua kev cog lus Yog tias koj tau hloov kho, ntxiv thiab cog lus hloov pauv rau a ntaub ntawv , thiab xav thim rov qab cov kev hloov no, ces koj tuaj yeem rov siv dua git rov pib dua HEAD ~ rau thim rov qab koj kev cog lus. Zoo ib yam li cov piv txwv yav dhau los, thaum koj siv git reset cov kev hloov kho yuav unstaged. Pom tias tam sim no koj ntaub ntawv yog tsis raug tracked lawm!

Yuav ua li cas koj undo cog lus tsis poob kev hloov?

Yog tias koj thawb lub kev hloov , koj ua tau thim rov qab nws thiab txav cov ntaub ntawv rov qab mus rau theem tsis muaj siv lwm ceg.

  1. Mus rau Version tswj qhov rais (Alt + 9 / Command + 9) - "Log" tab.
  2. Right-click rau ib qho kev cog lus ua ntej koj qhov kawg.
  3. Pib dua ceg tam sim no rau ntawm no.
  4. xaiv Soft (!!!)
  5. thawb lub Reset khawm nyob hauv qab ntawm lub qhov rais dialog.

Pom zoo: