Cov txheej txheem:

Yuav ua li cas kuv reconnect ib git repository?
Yuav ua li cas kuv reconnect ib git repository?

Video: Yuav ua li cas kuv reconnect ib git repository?

Video: Yuav ua li cas kuv reconnect ib git repository?
Video: Google Colab - Post Notebooks to a GitHub Repository! 2024, Kaum ib hlis
Anonim

1 Teb

  1. clone koj GitHub qhov project.
  2. cd nyob rau hauv lub zos clone.
  3. ua a git --work-tree =/path/to/unzip/project diff to check if your zip has any sib txawv nrog version cloned los ntawm git hub: yog tias ua tau, git ntxiv thiab cog lus.
  4. rov pib ua hauj lwm nrog lub zos clone (uas yog a git rov )

Xav txog qhov no, koj nkag mus rau git repository li cas?

Pib lub chaw cia khoom git tshiab

  1. Tsim ib daim ntawv teev npe kom muaj qhov project.
  2. Nkag mus rau hauv phau ntawv teev npe tshiab.
  3. Ntaus git init.
  4. Sau qee tus lej.
  5. Ntaus git ntxiv rau ntxiv cov ntaub ntawv (saib nplooj ntawv siv ib txwm).
  6. Ntaus git commit.

Tom qab ntawd, lo lus nug yog, dab tsi hais kom ua kom koj tsim kev sib txuas ntawm lub chaw khaws khoom hauv zos thiab chaw taws teeb? Ib git tej thaj chaw deb hais kom ua yog siv rau ua cov tej thaj chaw deb kev sib txuas xws li txuas Git local repository nrog GitHub tej thaj chaw deb repository . Tam sim no, nws yuav zoo li ntawd git nyob deb yog kev sib pauv ntawm cov ntaub ntawv (txhua yam koj ua hauv zos ) nruab nrab ntawm ib lub zos thiab a tej thaj chaw deb repository , qhov no tsis yog li ntawd.

Ib yam li ntawd, kuv yuav txuas mus rau qhov chaw khaws cia Git li cas?

git folder rau git , clone qhov project thiab luam tag nrho cov ntsiab lus rau hauv daim nplaub tshev ntawd.

Tam sim no hauv koj lub tshuab hauv zos, $cd rau hauv qhov project folder uas koj xav thawb kom git ua cov lus txib hauv qab no:

  1. git ib.
  2. git tej thaj chaw deb ntxiv keeb kwm [email tiv thaiv]:/home/ubuntu/workspace/project.
  3. git ua add.

Qhov txawv ntawm Git thiab GitHub yog dab tsi?

Tsuas tso tseg, Git yog ib qho kev tswj hwm version uas tso cai rau koj tswj hwm thiab khaws koj cov ntaub ntawv keeb kwm keeb kwm. GitHub yog huab-based hosting kev pabcuam uas cia koj tswj hwm Git chaw khaws cia. Yog tias koj muaj qhov qhib qhov project uas siv Git , ces GitHub yog tsim los pab koj tswj lawv zoo dua.

Pom zoo: