Lawula izinhlobo zakho nohlelo lwakho ngeqembu nge-Git and Gitorious

Lezi zivivinyo nemiphumela yenziwa kwimeta yokusabalalisa yaseCanaima

IGit yisoftware yokulawula inguqulo eyenzelwe i-Linus Torvalds, ngokusebenza kahle nokwethembeka kokufakwa kohlelo lokusebenza engqondweni lapho benenombolo enkulu yamafayela ekhodi yomthombo.

I-Gitorious yigama lohlelo lokunikeza ukusingathwa kumaphrojekthi wokuthuthukiswa kokubambisana wesoftware yamahhala esuselwa endaweni yeWebhu kusetshenziswa uhlelo lweGit olusatshalaliswa lokulawula inguqulo, kanye nesoftware yale seva yomthombo ovulekile eyakhiwe futhi isingathwe kuyo. .

setting_up_gitorious_on_your_own_server_article

Yini esingayenza ngalezi zinto ezimbili?
Lezi zinto ezimbili ziyahambisana, ne-git sifaka ikhodi yethu yomthombo. Nge-Gitorious siyabelana ngayo ngendlela elula nenhle, ukuze onjiniyela abaningi bakwazi ukufaka isandla kuphrojekthi, ngasikhathi sinye silawula izinhlobo ezenziwe ngaphambilini.

Ungayisebenzisa kanjani iGit & Gitorius?

Ake siqale ngoGitorius

  • Bhalisa futhi uqinisekise i-akhawunti ngeposi
  • Dala ukhiye we-SSH. Ukhiye we-SSH ukhiye wethu wokufinyelela ukuze ulayishe amafayela ku-gitorius.
  • Ukwakha ukhiye wokungena siya esigungwini bese sifaka iphakheji "sudo apt-get install ssh"
  • Sisebenzisa esigungwini "ssh-keygen"
  • Silandela izinyathelo bese ufaka ukhiye.
  • Uma konke kuhamba kahle, sine-password yethu, izokwakhiwa
  • Sifinyelela umkhombandlela we /home/usuario/.ssh
  • Sikopisha okungaphakathi kwefayela le-id_rsa.pub
  • Ngemuva kwalokho sifinyelela isikhathi sethu esihle futhi sifaka esikukopishe ku- "Phatha okhiye be-SSH"
  • Manje, singadala iphrojekthi ekhasini le-gitorius. "Dala Iphrojekthi Entsha", sigcwalisa ifomu.
  • Sakha indawo yokugcina izinto, sifaka igama nencazelo kuyo.

Manje sihamba neGIT

Manje sicela ikhophi yephrojekthi.

git clone git@gitorious.org:nombredelrepositorio/nombredelrepositorio.git

cd nombredelrepositorio

Dala igatsha elibizwa nge- "master" endaweni yakho yokugcina kusuka ku-Gitorious, egijima:

git remote add master git@gitorious.org:nombredelrepositorio/nombredelrepositorio.git

Kopisha yonke ikhodi yomthombo yephrojekthi yakho ngaphakathi kwesiqondisi sakho samanje:

cp -rv /path/to/your/code/nombredelrepositorio/* . O crea los archivos fuente de tu proyecto

Faka amafayela amasha kuleli gatsha (master):

git add .

Yenza lolu shintsho, ngiqonde ukuthi yenza wonke amafayela owakopishe emzuzwini edlule:

git commit -a

Vuselela iphrojekthi yakho endaweni egciniwe eyi-Gitorious:

git push --all

Amanothi:

Kunezinketho eziningi nge-git, lokhu okuyisisekelo, ukukwazi ukudala iphrojekthi, ukulayisha nokuvuselela amafayela, kusobala ukuthi i-git iyinkimbinkimbi kakhulu.

Ngiyazi ukuthi kunangaphambili - ukuphela kwe-git kepha ngiyithanda ngaleyo ndlela, futhi yilokho okushiwo yilo mbhalo.

Futhi kusebenza i-bitbucket


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-3, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   eliotime3000 kusho

    Kuyasiza, ukuthembeka, kepha kuphephe kakhulu ukukwenza ku-Debian kuneCanaima (yize iCanaima ihambisana no-Ubuntu, ukuthembeka).

  2.   i-ferchmetal kusho

    kuyajabulisa!

  3.   Wadlula lapha kusho

    Kuhle kakhulu, ngafaka i-debian gitosis + gitweb (ngemuva kwe-nginx) futhi iqiniso ngijabule kakhulu, ngaphezu kwakho konke, ngoba nginikeza / njll weqembu ngalinye futhi ngilawula ushintsho olusheshayo nolubonakalayo.