Cov txheej txheem:

Kuv yuav rho tawm txhua yam ntawm kuv qhov chaw cia?
Kuv yuav rho tawm txhua yam ntawm kuv qhov chaw cia?

Video: Kuv yuav rho tawm txhua yam ntawm kuv qhov chaw cia?

Video: Kuv yuav rho tawm txhua yam ntawm kuv qhov chaw cia?
Video: Maiv Thoj & Win Vang - Tseem Nco Koj _ Nkauj Tawm Tshiab 2019 [ Official MV ] - ຍັງຄິດຮອດເຈົ້າ 2024, Kaum ib hlis
Anonim

Yog koj xav tau rau rho tawm cov tag nrho cov ntaub ntawv. koj tuaj yeem ua tib yam los ntawm kev siv git rm -r ib. Ua ib git add -Ib los ntawm sab saum toj ntawm daim ntawv ua haujlwm, saib git xwm txheej thiab / lossis git diff --cached los tshuaj xyuas qhov koj tab tom yuav ua, ces git ua qhov tshwm sim.

Tsis tas li ntawd, yuav ua li cas kuv khoob git repository?

Rho tawm Git repo ntawm lub vev xaib

  1. Xaiv Repos, Files.
  2. Los ntawm repo drop-down, xaiv Tswj chaw cia khoom.
  3. Xaiv lub npe ntawm lub chaw cia khoom los ntawm cov npe Repositories, xaiv cov ntawv qhia zaub mov, thiab tom qab ntawd xaiv Rho tawm cov chaw khaws cia.
  4. Paub meej tias qhov kev tshem tawm ntawm qhov chaw khaws cia los ntawm kev ntaus lub npe repo thiab xaiv Delete.

Tom qab ntawd, lo lus nug yog, yuav ua li cas kuv thiaj li tshem tawm git repository los ntawm ib daim nplaub tshev? Yuav ua li cas Tshem tawm a phau ntawv los ntawm Git Repository . Siv rm -r hloov nrog lub git txib rau tshem tawm cov npe recursively. Tom qab tshem tawm tus phau ntawv koj yuav tsum tau ua raws li cov kev hloov hauv lub zos git repository . Ces thawb cov kev hloov mus rau tshem tawm tus phau ntawv los ntawm tej thaj chaw deb git repository.

Ib yam li ntawd, nws tau nug, Kuv yuav rho tawm tag nrho cov kev ua txhaum yav dhau los li cas?

Rau tshem tawm kawg cog lus los ntawm git, koj tuaj yeem khiav git pib dua --hard HEAD^ Yog tias koj yog tshem tawm ntau yam kev cog lus los ntawm sab saum toj, koj tuaj yeem khiav git pib dua --hard HEAD ~ 2 rau tshem tawm ob kawg cog lus . Koj tuaj yeem nce tus lej rau tshem tawm txawm ntau cog lus.

Kuv yuav rov pib dua kuv qhov chaw cia khoom li cas?

3 Teb

  1. Rho tawm cov. git directory hauv zos.
  2. Rov tsim cov git repostory: $ cd (project-directory) $ git init $ (ntxiv qee cov ntaub ntawv) $ git ntxiv. $ git commit -m 'Initial commit'
  3. Thawb mus rau tej thaj chaw deb server, overwriting. Nco ntsoov tias koj yuav ua rau lwm tus neeg ua qhov no … koj zoo dua yog tus neeg siv khoom xwb.

Pom zoo: