I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi

Программирование

I-Git iyinsiza yomugqa womyalo wokulawula inguqulo, okungukuthi, ukugcina umlando wezinguquko ezenziwa umsebenzisi kumafayili ephrojekthi. Ngokuvamile isetshenziselwa ukusebenzela izinhlelo zokusebenza, kodwa ingasetshenziswa kwezinye izimo, isibonelo, abaklami basebenzisa i-Git ukugcina izinguqulo ezahlukene zemidwebo nezakhiwo. I-Git ikuvumela ukuthi ubuyisele emuva uhlelo lokusebenza enguqulweni yangaphambili, uqhathanise futhi uhlaziye izinguquko.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi

I-Git yabaqalayo: imigomo nemiqondo eyisisekelo, umhlahlandlela oyisingeniso

Ngaphambi kokuthi uqale ukusebenza nge-Git, udinga ukuqonda ukuthi iyini indawo yokugcina, ukuzibophezela, kanye negatsha.
Inqolobane yindawo lapho kugcinwa khona ikhodi noma enye idatha, kanye nomlando wezinguquko zabo. Uhlelo lwe-Git lusebenza endaweni futhi lonke ulwazi lugcinwa kukhompyutha yakho, kodwa ungasebenzisa futhi izinsiza ze-inthanethi. Okudume kakhulu kubo yi-Github. Kukhona ezinye ezimbili ezaziwa kakhulu: I-Bitbucket ne-GitLab.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
Ukuzibophezela kuyisithombe esifushane sesimo sephrojekthi endaweni ethile ngesikhathi. Inomazisi namazwana ahlukile.
Igatsha umlando wezinguquko ezenziwe kuphrojekthi. Inegama layo futhi iqukethe izibophezelo. Indawo yokugcina ingaba namagatsha amaningi ahlukana noma ahlanganiswe namanye amagatsha.

Isebenza kanjani i-Git

Masibonise ngokubona ukuthi isistimu yokugcina ye-Git ihlelwa kanjani, sisebenzisa umdwebo olula njengesibonelo.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Lapha imibuthano imele ukuzibophezela, futhi imicibisholo ikhombisa ukuthi iyiphi ebhekisa kukuphi. Njengoba wonke umuntu ebhekisela kwedlule, i-C3 iyona entsha, i-C2 inguqulo endala, njalo njalo, kuze kufike kweyokuqala kuleli gatsha le-C0. Leli igatsha eliyinhloko, elivame ukubizwa ngokuthi master. Unxande obhalwe ukuthi main* ngaphakathi ubonisa ukuthi yisiphi isivumelwano osebenza kuso njengamanje. Emfanekisweni, ubona igrafu elula enegatsha elilodwa kanye nezibopho ezine. I-Git iyakwazi nokusebenza ngamagrafu ayinkimbinkimbi afaka amagatsha amaningana angahlangana abe linye.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi

Ifaka i-Git

I-Git iyinsiza ye-console engasebenza ku-Windows, Mac OS, kanye nezinhlelo zokusebenza ze-Linux. Sizokutshela ukuthi ungayifaka kanjani ngayinye yazo. Ukufaka ngaphansi kwe-Windows OS, udinga ukulanda uhlelo kuwebhusayithi esemthethweni ethi https://git-scm.com/downloads bese ulufaka.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Uma une-Mac OS futhi ufake imenenja yephakeji ye-Homebrew, faka umyalo:
brew install git Uma i-Homebrew ingafakiwe, bese ugijima:
git –version Ngemva kwalokho, efasiteleni elivelayo, uzocelwa ukuthi ufake I-Command Line Tools. . I-Git izophinde ifakwe nalolu hlelo lokusebenza. Ku-Linux Debian nokunye ukusatshalaliswa okusekelwe kule nguqulo, njengo-Ubuntu noma i-Mint, umyalo olandelayo uyadingeka ukuze ufake:
sudo apt install gitKu-Linux CentOS, udinga ukufaka:
sudo yum install git What is Git, ukufakwa kanye nokumisa – ukufakwa: https://youtu.be/bkNCylkzFRk

Isetha ngaphambilini i-Git

Ngemuva kokufaka i-Git, udinga ukuyilungisa ukuze ngaso sonke isikhathi lapho wenza isivumelwano, kuboniswe igama lombhali. Ukuze wenze lokhu, sebenzisa i-git bese ukhipha umyalo:
git config –global user.name ”
Umbhali
Lapha, esikhundleni sokuthi “Umbhali”, sibeka igama lethu, isibonelo, “Ivan_Petrov”. Ngemva kwalokho, ungasetha ikheli le-imeyili ngomyalo olandelayo:
git config –global user.email “You_adr@email.com” Kulokhu, esikhundleni sokuthi “You_adr@email.com” sibonisa ikheli le-imeyili langempela. [i-id yamagama-ncazo = “okunamathiselwe_13099″ align=”aligncenter” wide=”663″]
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi uhlelo lwefayela le-GIT[/caption]

Ukudala Indawo Yakho Yokuqala Ye-Git

Ukuze udale indawo yokugcina, qala uye kufolda yephrojekthi. Isibonelo, ku-Windows lokhu kungase kube ngu-D:/GitProject. Faka umyalo:
cd
d:\GitProject Ngemva kwalokho, yakha inqolobane:
git init Ngemva kwalokho, engeza wonke amafayela:
git add –all Ukwengeza ifayela elithile, faka:
git add filename Manje usungakha isithembiso:
git commit -m “comment” Amanye amanothi ekudaleni inqolobane:

  1. Inqolobane ingaba namafayela amaningi namafolda amancane (ikakhulukazi ifolda evamile).
  2. Kungcono ukuba nenqolobane ehlukile yephrojekthi ngayinye.
  3. Ungawadali amafolda enqolobane ngaphakathi kwenye inqolobane (gwema amakhosombe e-matryoshka!).
  4. Izinguquko ezenziwe kumafolda ayinqolobane “ziyalandelelwa” yi-Git, kodwa lezi zinguquko kufanele zengezwe endaweni yokugcina ukuze zilandelelwe noma zirekhodwe.
  5. Ungakwazi ukulawula ama-elementi u-Git “awabukayo”. Kungcono ukuziba amasethi edatha amakhulu kakhulu noma amafayela esikhashana.

[i-id yamagama-ncazo = “okunamathiselwe_13120″ align=”aligncenter” wide=”725″]
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Inqolobane ye-Git[/caption]

Isikhathi Sokuzibophezela

Ukuzibophezela ku-Git kunconywa kulezi zimo ezilandelayo:

  • ukusebenza okusha kwengezwe kuphrojekthi;
  • zonke iziphazamisi zilungisiwe;
  • uvala okwanamuhla futhi ufuna ukulondoloza izinguquko zakho.

I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi

Hlanganyela kumaphrojekthi we-Git

Ake sithi wena nabangani bakho niqhamuke nephrojekthi entsha futhi nanquma ukwabelana ngezibopho. Omunye uzoba nesibopho sokusebenza, omunye umklamo kanye nomklamo, owesithathu ukubhaliswa, ukugunyazwa nokuphepha. Kulokhu, udinga ukugxila. Njengoba sekushiwo, igatsha liyisethi yezenzo ezihamba ngokulandelana ngokulandelana. Igatsha elikhulu libizwa ngokuthi master. Amanye amagatsha awokusebenzisa izici ezintsha noma ukulungisa iziphazamisi. Ngakho-ke, egatsheni elihlukile, ungenza noma yiziphi izinguquko, bese uzihlanganisa nenhloko. Ochwepheshe abaningi abacebisi ukudala izibopho egatsheni eliyinhloko, kodwa batusa ukudala entsha, wenze izinguquko kuyo bese uyihlanganisa ibe master. Ukuze uqale igatsha elisha, udinga ukusebenzisa umyalo:
git branch
bugFixLokhu kungenziwa futhi ngomyalo olandelayo:
git checkout -b
bugFix

Indlela yesibili ihluke kweyokuqala ngoba kulokhu, ngemva kokwenza umyalo, ungena ngokushesha egatsheni elidaliwe.

Kungcono ukuqamba igatsha elisha ngegama elifushane, kodwa ngesikhathi esifanayo igama elinamandla futhi eliqondakalayo ukuvimbela ukudideka kuphrojekthi. Uma usebenzisa isistimu yakho, ungacacisa isihlonzi ngaphambi kwegama lomsebenzi. Futhi, ungakhohlwa ukushiya amazwana akho kusibopho ngasinye osidalayo, okufanele sikhombise ingqikithi yezinguquko. Ukuze usuke kwelinye igatsha uye kwelinye, udinga ukusebenzisa umyalo olandelayo:
git checkout
new
_1 Ngemva kokuqeda umsebenzi, izinguquko ezenziwe egatsheni lamanje kufanele zihlanganiswe ku-master, masters. Ukuze wenze lokhu, qala uhlole igatsha eliyinhloko usebenzisa umyalo:
git checkout master Ngemva kwalokho, buyekeza igatsha lendawo:
git
pull
origin
masterManje usungakwazi ukuhlanganisa amagatsha:
git
merge
bugFix Lo myalo wengeza izinguquko ezivela egatsheni elishiwo ku-(bugFix) umyalo egatsheni okulo, kulokhu okuyinhloko. Ukuze ubuke isimo samanje segatsha, udinga ukufaka umyalo:
git status Ukuze abanye abasebenzisi abasebenza kuphrojekthi babone izinguquko ezenziwe, udinga ukuziphusha kuseva. Ukuze wenze lokhu, kufanele uqale uye egatsheni ofuna ukulicindezela ku-github. Ukufaka inkosi, sebenzisa umyalo:
git checkout master Emva kwalokho, ungayiphushela kuseva ye-Github:
git push origin masterUkuze omunye umuntu athole ukufinyelela kuphrojekthi, udinga isevisi yokugcina ikhodi, isibonelo, i-Github. Uma usanda kujoyina iphrojekthi futhi udinga ukuzidawuniloda, sebenzisa umyalo:
git clone https://github.com/…/….git

Lapha https://github.com/…/….git ikheli lendawo yokugcina. Ingatholwa ngokuvula iphrojekthi oyifunayo bese uchofoza inkinobho eluhlaza “Ikhodi”.

Iseluleko esibalulekile!

Kunconywa ukuthi ubuyekeze izingcweti emshinini wakho wasendaweni ngaphambi kokudala igatsha elisha. Ukuze wenze lokhu, faka igatsha olifunayo bese ugijima umyalo olandelayo:
git pull origin master Njengomphumela, izinguquko zangempela zizolandwa ku-github. Ngendlela efanayo, ungabuyekeza noma yiliphi igatsha. Ukuze ubuyekeze wonke amagatsha akhona, ungasebenzisa umyalo:
git pull

Inkinga evamile lapho usebenza nephrojekthi ye-Git

Uma uzama ukuhlanganisa izinguquko ngokuzenzekelayo, kungase kwenzeke ukuthi womabili amagatsha abe nezinguquko emugqeni ofanayo kulesi simo lapho ugijima umyalo:
git merge master Kuvela iphutha elilandelayo:
Ukuhlanganisa ngokuzenzakalela Hello.py
CONFLICT (okuqukethwe): Hlanganisa ukungqubuzana phakathi Hello.py
Ukuhlanganisa okuzenzakalelayo kwehlulekile; lungisa izingxabano bese wenza umphumela. Kulokhu, udinga ukuxazulula ukungqubuzana mathupha. Ukuze wenze lokhu, vula ifayela elenzeke kulo iphutha, kithina elithi Hello.py, thola ukuthi yini engalungile bese uxazulula inkinga. Ngemuva kwalokho, engeza ifayela elilungisiwe ngomyalo othi:
git add
Hello
.
py Futhi udale ukuzibophezela okusha:
git commit -m “Ukungqubuzana Okuhlanganisiwe”

Imiyalo ewusizo – imiyalo ye-Git

Ungathola ukuthi igatsha elingezansi lihluke kanjani kwelinye usebenzisa umyalo othi:
git
diff < first_branch > <second_branch> Ukuze ususe igatsha elingeziwe, thayipha:

branch_namegit branch -d <
git help Thola usizo kumyalo othile:
usizo lwe-git <command_name> Isifundo sokuqala se- Git ne-GitHub – okudingeka ukwazi ngokufaka, indlela yokufaka, ukwenza, inqolobane, imiyalo, indlela yokudala, ukususa nokwenza izinguquko emagatsheni: https: //youtu.be/zZBiln_2FhM



Izinhlelo ze-GUI zokusebenza ne-Git

Kulula ukuphatha izinguqulo zesofthiwe hhayi ngomugqa womyalo, kodwa usebenzisa i-graphical interface. Ezinye izindawo zokuthuthuka kanye nabahleli bombhalo banikeza isixhumi esibonakalayo esinesithombe sokusebenza ne-Git. Kodwa kukhona nezinhlelo ezikhethekile, sibala ezinye zazo:

  1. I- GitHub Desktop iwuhlelo lokusebenza olunemifanekiso eklanyelwe ukusebenza nensizakalo ye-Git kanye nensizakalo ye-Github, ingahlanganisa futhi ilande amakhosombe kusigcinalwazi sakho, futhi ilawule izinguquko futhi yenze ezinye izinto eziwusizo. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  2. I- Sourcetree iyiklayenti le-Git lamahhala lezinhlelo zokusebenza zeWindows ne-Mac ezenza kube lula ukuxhumana namakhosombe.
  3. I- GitKraken iyiklayenti lesithombe elisebenziseka kalula le-Windows, Linux kanye nama-MacO elisekela i-GitHub, i-GitLab kanye nezinsizakalo ze-Bitbucket. Ngayo, awukwazi ukuxazulula imisebenzi eyisisekelo kuphela, kodwa futhi wenze imisebenzi eyinkimbinkimbi, isibonelo, hlanganisa futhi uhlele kabusha izibopho, hlanganisa amagatsha, bhala kabusha umlando.

I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Ake sixoxe mayelana ngamunye wabo ngokuningiliziwe.

Ideskithophu ye-GitHub

[i-id yamagama-ncazo = “okunamathiselwe_12709” align = “aligncenter” wide = “624”]
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Ukuphatha nokulungisa amaphrojekthi I-Github Desktop[/caption] I-GitHub Desktop iwuhlelo lwekhompyutha yakho siqu olukuvumela ukuthi uxhumane ngqo nesevisi ye-Github. Leli thuluzi likuvumela ukuthi uphathe izinguqulo usebenzisa isixhumi esibonakalayo esinesithombe, usheshise ukuthuthukiswa komsebenzi wakho. I-GitHub Desktop ikuvumela ukuthi uxhumane ne-Git ngaphandle kokusebenzisa umugqa womyalo, usebenzisa kuphela isixhumi esibonakalayo sohlelo lokusebenza. Kuyaqapheleka ukuthi uhlelo lokusebenza lwe-GitHub Desktop alukwazi ukwenza yonke into engenziwa ngomugqa womyalo, kodwa isixhumi esibonakalayo somsebenzisi ngokwaso sinikeza imiyalo eyisisekelo ye-Git. I-GitHub Desktop isebenza kuzo zonke izinhlelo zokusebenza ezidumile, kufaka phakathi iWindows, Linux, ne-macOS. Sizokutshela ukuthi ungayifaka kanjani i-GitHub Desktop futhi usebenze nalolu hlelo lokusebenza. Ukusebenzisa isevisi ye-GitHub kanye nohlelo lokusebenza lwe-GitHub Desktop, Uzodinga ukudala i-akhawunti ye-Github uma ungenayo. Ukuze wenze lokhu, iya ku-GitHub. Ekhoneni eliphezulu kwesokudla, uzobona inkinobho ethi “Bhalisa”.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Chofoza kuyo ukuze uye ekhasini elilandelayo. Udinga ukufaka imininingwane yakho, okuhlanganisa ikheli lakho le-imeyili, igama lomsebenzisi nephasiwedi. Esigabeni esilandelayo, uzocelwa ukuthi uqinisekise i-akhawunti yakho ngokuchofoza isixhumanisi esingaphakathi kwe-imeyili eze ekhelini elishiwo. Uma isiqinisekisiwe, kuzokwakhiwa i-akhawunti ye-GitHub futhi ungaqala ukusebenzisa inkundla. Nge-akhawunti yakho ye-GitHub emisiwe, usulungele ukufaka uhlelo lokusebenza lwe-GitHub Desktop kukhompuyutha yakho siqu. Ukuze wenze lokhu, vula ithebhu entsha kusiphequluli sakho bese uya ekhasini lokulanda uhlelo lokusebenza.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Abasebenzisi beWindows badinga ukuchofoza inkinobho enkulu ensomi ethi “Landa ngeWindows”, kepha uma ungumsebenzisi we-Mac, udinga ukuthola umugqa othi i-macOS ngaphansi kwenkinobho bese uchofoza kuyo. Kufanele kube yi-macOS 10.12 noma kamuva noma i-64-bit Windows. Ngemuva kokulanda, uzodinga ukufaka uhlelo, bese ungena ngemvume nge-akhawunti edalwe esinyathelweni esedlule. Awudingi ukungena ngemvume ku-akhawunti yakho ngokushesha, kodwa kungcono ukwenza kanjalo manje. Ukuze udale indawo yokugcina entsha, vula i-GitHub Desktop bese uchofoza ibhokisi lesibili elingezansi elithi “Dala Indawo Entsha Ku-Hard Drive yakho”. Kuzovela iwindi le-pop-up elidinga ukugcwaliswa – qala ngokuqamba inqolobane yokuqala. Ngemuva kokukhetha igama, uzodinga futhi ukukhetha ukuthi lizoba kuphi kukhompyutha. Ungaphinda uqoke ibhokisi elithi “Qalisa le ndawo yakho yokugcina nge-README” uma ufuna ukulungisa ifayela le-README ngokwalo ngokuhamba kwesikhathi. Ngemuva kwalokho chofoza “Dala indawo yokugcina”. Ngenxa yalokho, udale inqolobane entsha ye-Git usebenzisa uhlelo lokusebenza lwe-GitHub Desktop ngaphandle kokusebenzisa isiphequluli.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Phezulu kwekhasi elisha, uzobona igama lendawo yokugcina kanye negatsha. Eqinisweni, okwamanje inqolobane itholakala kuphela kukhompyutha yakho. Ukuze uyishicilele, sidinga ukuchofoza okuthi “Shicilela Inqolobane”. Ikhosombe elisha manje selizovela kuphrofayela yakho ye-github. Ungasebenzisa uhlelo lokusebenza lwe-GitHub Desktop ukuze uhlanganise iphrojekthi yakho. Ukuze wenze lokhu, chofoza “Igatsha Lamanje”, bese ukhetha igatsha olifunayo ohlwini lwamagatsha, lisho igama bese uchofoza “Dala”. Ukuze ushintshe phakathi kwengemuva elikhanyayo nelimnyama, hamba kokuthi Izinketho, Ukubukeka. Ungasebenzisa uhlelo lokusebenza lwedeskithophu ukuze udale imisebenzi ukuze uhlanganyele kumaphrojekthi nabanye. Imibuzo ikuvumela ukuthi ulandelele imibono futhi uxoxe nganoma yiziphi izinguquko kumaphrojekthi akho. Ukuze udale inkinga, kubha yemenyu, sebenzisa imenyu ethi “Indawo Yokugcina”, bese uchofoza okuthi “Dala Inkinga”.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Kungenjalo, ungakwazi ukwethula i-GitHub Desktop kusukela kulayini womyalo. Ukuze wenze lokhu, vula umyalo womyalo bese uthayipha i-Github. Ungakwazi futhi ukwethula i-GitHub Desktop ngokumelene nendawo yokugcina ethile. Vele uthayiphe i-Github elandelwa indlela yokugcina.

I-Sourcetree

I-SourceTree iyisicelo samahhala sokusebenza ne-GitHub, i-BitBucket kanye nezinsizakalo ze-Mercurial. Iyatholakala kumapulatifomu asebenzisa iWindows ne-iOS. I-Sourcetree ilungele abaqalayo. Ine-GUI enembile yamakhosombe futhi ikuvumela ukuthi usebenzise amandla aphelele e-Git ngokusebenzisa isixhumi esibonakalayo esenziwe lula. Ukufaka i-SourceTree, udinga ukulanda ifayela lokufaka kusayithi elisemthethweni bese uliqhuba. Phakathi nenqubo yokufaka, uzodinga ukuvumela uhlelo lokusebenza ukwenza izinguquko ku-hard drive, uvumelane nesivumelwano selayisensi. Futhi ngesikhathi senqubo yokufaka, i-SourceTree ingabuza ukuthi uyafuna yini ukufaka noma iyiphi isoftware ye-git eyengeziwe. Kumelwe uthi “Yebo” futhi ufake le softhiwe. Kunezindlela ezimbili zokuxhuma kusevisi ye-Github:

  1. Ngephrothokholi yokugunyazwa kwe-OAuth.
  2. Ngokhiye we-SSH.

Ake sixoxe ngomunye wabo. Indlela yokuqala ukuxhuma i-GitHub nge-akhawunti ekude. Vumela i-SourceTree ukuthi ixhume i-akhawunti yakho ye-GitHub ku-OAuth. Lena indlela elula yokuxhuma i-GitHub ku-SourceTree.

  1. Okokuqala chofoza okuthi “Engeza i-akhawunti”. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  2. Bese ukhetha i-GitHub yokubamba. Ungashintshi iphrothokholi ekhethwayo kanye nokuqinisekisa, okungukuthi, shiya i-HTTPS ne-OAuth. Bese uchofoza okuthi “Vuselela Ithokheni ye-OAuth”. Uhlelo lokusebenza luzovula ngokuzenzakalelayo ikhasi lewebhu esipheqululini sakho bese likucela imininingwane yokungena ye-akhawunti yakho ye-GitHub. Uma uke wangena ku-akhawunti yakho ye-GitHub kulesi siphequluli, lesi sinyathelo sizokweqiwa. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  3. Chofoza okuthi “Gunyaza i-atlassian” ukuze uvumele i-SourceTree ifinyelele ku-akhawunti yakho ye-GitHub. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  4. Ngemuva kwalokho, kufanele ubone umlayezo mayelana nokuqedwa ngempumelelo kokuqinisekisa. Chofoza okuthi KULUNGILE.

Ungakwazi ke ukubuka yonke inqolobane yakho ku-SourceTree ngokuchofoza ku-akhawunti yakho.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Indlela yesibili ukuxhuma i-GitHub ngokhiye we-SSH. Ukuze wenze lokhu, udinga ukukhiqiza ipheya yokhiye be-SSH. Lona ukhiye oyimfihlo nowomphakathi. Ukhiye osesidlangalaleni usetshenziswa ku-akhawunti ye-GitHub. Ngakolunye uhlangothi, ukhiye oyimfihlo uzongezwa kuhlu lokhiye kukhompyutha yakho. Nansi imiyalelo:

  1. Ukuze ukhiqize ipheya yokhiye we-SSH, hamba kumenyu ethi “Amathuluzi” bese uchofoza okuthi “Dala noma Ngenisa Okhiye be-SSH”. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  2. Chofoza okuthi “Khiqiza” efasiteleni le-PuTTY generator key. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  3. Hambisa ikhesa yegundane endaweni engenalutho, bese uhambisa ikhesa yegundane kuze kube sekupheleni kwesizukulwane. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  4. Ngemva kokuba usuqedile ukukhiqiza ukhiye we-SSH, setha iphasiwedi yokhiye wakho we-SSH.
  5. Londoloza ukhiye osesidlangalaleni nokhiye oyimfihlo. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  6. Ungavali ijeneretha yokhiye we-PuTTY. Ngena ngemvume ku-akhawunti yakho ye-GitHub, chofoza isithonjana sakho se-avatar ekhoneni eliphezulu kwesokudla, bese uchofoza Izilungiselelo. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  7. Chofoza “Okhiye be-SSH ne-GPG” bese ukhetha “Ukhiye omusha we-SSH”. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  8. Nikeza ukhiye wakho we-SSH igama bese ukopisha ukhiye wasesidlangalaleni osuka kujeneretha yokhiye we-PuTTY uye endaweni yokhiye. Ngemuva kwalokho, chofoza “Engeza ukhiye we-SSH”. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  9. Buyela ku-SourceTree, iya kokuthi “Amathuluzi” bese uchofoza ku-“Launch SSH Agent”. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  10. Ngemva kwesikhashana, chofoza isithonjana sokuqapha esincane kubha yomsebenzi. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi
  11. Ngenxa yalokho, kuzovela uhlu lokhiye. Chofoza okuthi “Engeza Ukhiye” ukuze wengeze ukhiye oyimfihlo owulondoloze ngaphambilini. I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi

Manje buyela ekhasini lekhosombe le-GitHub bese uzama ukulihlanganisa usebenzisa i-SSH. https://articles.opexflow.com/programming/chto-takoe-github-kak-polzovatsya.htm

I-GitKraken

I-GitKraken ingolunye uhlelo lokusebenza oluklanyelwe ukusebenza nezinhlelo ezihlukahlukene zokulawula izinguqulo zisebenzisa i-GUI. Ukuze uqalise, udinga ukubhalisa ku-GitHub futhi ufake uhlelo lwe-GitKraken. Uma uqala uhlelo, udinga ukufaka igama lakho lomsebenzisi nephasiwedi kusuka kusevisi ye-GitHub. Ukuze ungafaki iphasiwedi njalo, udinga ukumisa ukhiye we-SSH. Uma ungakabi nawo ukhiye we-SSH okhiqiziwe, ungalandela umhlahlandlela we-GitHub ekudaleni ukhiye omusha. Uma usunokhiye wakho we-SSH, ungawungeza ku-akhawunti yakho ye-GitHub. Ukuze wenze lokhu, khetha “Ifayela” bese “Izintandokazi” kusukela kumenyu enkulu. Bese ukhetha “Ukuqinisekisa” futhi unikeze izindlela zokhiye bakho basesidlangalaleni nabayimfihlo. Isinyathelo sokuqala sokushicilela noma yikuphi okuqukethwe ku-GitHub ukwakha inqolobane yasendaweni ukuze ulandelele umsebenzi wakho. Le folda izoqukatha wonke amafayela ofuna ukuyishicilela ku-GitHub. Kufanele ulandele imiyalelo:

  1. Ukwakha inqolobane entsha ku-GitKraken, khetha “Ifayela” kumenyu enkulu, bese “I-Init Repo”. Kuzoba nezinketho eziningana zezinhlobo ezahlukene zamakhosombe, khetha “Indawo Kuphela”.
  2. Bese ukhetha ifolda ezoba inqolobane yakho entsha. Ungakhetha ifolda engenalutho noma ifolda equkethe amafayela kakade; ngeke ulahlekelwe izinguquko zakho.
  3. Ibhokisi lengxoxo elilandelayo liqukethe nezilungiselelo zezifanekiso ezizenzakalelayo namafayela elayisensi. Shiya konke njengoba kunjalo.
  4. Chofoza okuthi “Dala Indawo yokugcina”.

Awudingi i-akhawunti ye-Github ukuze usebenzise i-Git (noma i-GitKraken) endaweni kukhompyutha yakho. Kodwa-ke, uma uhlela ukuhlanganyela nabanye abasebenzisi, noma usebenzise amafayela asuka kumakhompyutha amaningi, uzodinga ukusebenzisa umsingathi onjenge-Github. Ukwakha indawo yokugcina ku-GitHub, ngemuva kokuchofoza “I-Init Repo”, khetha umugqa “GitHub” bese ugcwalisa iwindi elivela kanje:

  1. I- akhawunti – Igama le-akhawunti yakho ye-GitHub.
  2. Igama – igama lenqolobane. Iqambe ngezinhlamvu, izinombolo nama-underscore.
  3. Incazelo – Incazelo yokuthi le nqolobane izoqukatha ini.
  4. Ukufinyelela – ukufinyelela endaweni ekude, kungakhathaliseki ukuthi kufanele ibonakale kuwo wonke umuntu noma ihlale ivulekile kuwena kuphela nakubantu obangezayo njengabahlanganyeli
  5. Clone ngemva kwe-init – shiya le nketho ihloliwe, okuzokwenza indawo yokugcina itholakale kuwe ku-GitHub.
  6. Lapho ozokopisha khona – khetha indawo kukhompuyutha lapho kufanele kubekwe khona ifolda yokugcina entsha.
  7. Ekugcineni, chofoza inkinobho ethi “Dala Indawo yokugcina kanye ne-Clone” .

I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi Ngemva kwalokho, kuzovela ifolda entsha ekhoneni eliphezulu kwesokunxele lesixhumi esibonakalayo se-GitKraken, futhi singabona ulwazi olwengeziwe mayelana nalo kukholamu yesokunxele. Uma uxhuma i-GitHub ku-GitKraken, qiniseka ukuthi ukugunyazwa kwenziwa ku-Chrome noma kuFirefox, hhayi ku-Internet Explorer.

Amabhothi okuhweba ku-GitHub – Umthombo ovulekile we-Bot Github

Isistimu yokulawula inguqulo ye-Git isetshenziswa, phakathi kwezinye izinto, ukuthuthukisa
amarobhothi okuhweba . Nazi ezinye izibonelo zentuthuko ongayilanda futhi usebenzise.

Python Ukuhweba Robot

Irobhothi lokuhweba elibhalwe ngePython liyatholakala kokuthi https://github.com/areed1192/python-trading-robot, elingasebenzisa amasu azenzakalelayo lisebenzisa ukuhlaziya lobuchwepheshe. Irobhothi lidizayinelwe ukulingisa izimo ezimbalwa ezijwayelekile: Lingakwazi ukubala amaphuzu ezingozi zizonke ezihlobene nephothifoliyo futhi linikeze impendulo yesikhathi sangempela ngenkathi uhweba. Ikuvumela ukuthi usebenze ngethebula ledatha lesikhathi sangempela eliqukethe kokubili izintengo zomlando nezamanje njengoba zishintsha. Izokwenza inqubo yokugcina idatha ibe lula futhi ibe nokufinyelela okusheshayo. Ngaphezu kwalokho, izokwenziwa ngendlela oyifisayo ukuze ukwazi ukubuka kalula idatha yakho yezezimali njengoba ingena futhi wenze ukuhlaziya okwengeziwe uma kunesidingo. Iqukethe izinkomba ezisebenzisa zombili izintengo zomlando nezamanje.

Ukuhweba ibhot Cassandre

I-Cassandre yokuhweba irobhothi isixhumanisi ku-GitHub https://github.com/cassandre-tech/cassandre-trading-bot – iyakwazi ukunakekela ukuxhuma ekushintsheni, ama-akhawunti, ama-oda, amadili nezikhundla, ukuze ukwazi ukugxila ekwakhiweni kwakho. isu. Ukukhishwa ngakunye kuhlolwa ukusebenza ne-Kucoin, Coinbase kanye ne-Binance exchanges. Ngalo, kulula ukwenza isu lakho siqu, ngoba lokhu udinga nje ukubeka izimo lapho ufuna ukudala izikhundla ezimfushane noma ezinde futhi ubeke imithetho. Kukhona isilayishi sokuhlola i-bot kudatha yomlando. Phakathi nokuhlolwa, u-Cassandre uzongenisa idatha futhi ayingeze esu lakho. U-Cassandre uzokusiza ukuthi wakhe isu elisuselwe kumtapo wezincwadi wokuhlaziya we-ta4j.
I-Git yabaqalayo, ukufaka, ukusebenzisa, ukuhweba amarobhothi

I-EA31337 Mahhala

I-EA31337 Libre ku-https://github.com/EA31337/EA31337-Libre iyirobhothi yamahhala enamasu amaningi e-Forex yokuhweba ebhalwe nge-MQL. Irobhothi lokuhweba liza namasu angaphezu kwama-35 ongakhetha kuwo. Isu ngalinye lingahlaziya imakethe ngezikhathi ezihlukene ngokuzimela. Ukuhlaziywa kwemakethe kusekelwe ezinkomba zobuchwepheshe ezidumile. Ungakwazi futhi ukubhala amasu akho.

info
Rate author
Add a comment

  1. Babubhai Senava

    Robot kevirite. Banavo

    Reply