I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba

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

I-Git sisixhobo somgca womyalelo wolawulo loguqulelo, oko kukuthi, ukugcina imbali yotshintsho olwenziwa ngumsebenzisi kwiifayile zeprojekthi. Ngokuqhelekileyo isetyenziselwa ukusebenza kwizicelo, kodwa inokusetyenziswa kwezinye iimeko, umzekelo, abaqulunqi basebenzisa i-Git ukugcina iinguqulelo ezahlukeneyo zemizobo kunye noyilo. I-Git ikuvumela ukuba ubuyisele umva isicelo kwinguqulelo yangaphambili, thelekisa kwaye uhlalutye utshintsho.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba

I-Git yabaqalayo: imigaqo esisiseko kunye neekhonsepthi, isikhokelo sentshayelelo

Ngaphambi kokuba uqale ukusebenza neGit, kufuneka uqonde ukuba yintoni indawo yokugcina, ukuzibophelela, kunye nesebe.
Indawo yokugcina indawo apho ikhowudi okanye enye idatha igcinwa khona, kunye nembali yeenguqu zabo. Inkqubo yeGit iqhutywa ekuhlaleni kwaye lonke ulwazi lugcinwe kwikhompyuter yakho, kodwa unokusebenzisa iinkonzo ze-Intanethi. Eyona nto idumileyo kubo yiGithub. Kukho ezimbini ezaziwayo ngakumbi: iBitbucket kunye neGitLab.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
Isibophelelo sisishwankathelo semeko yeprojekthi ngexesha elithile. Ine-ID eyodwa kunye nezimvo.
Isebe yimbali yotshintsho olwenziwe kwiprojekthi. Inegama layo kwaye iqulathe izibophelelo. Indawo yokugcina inokuba namasebe amaninzi asuka okanye adityaniswe namanye amasebe.

Isebenza njani iGit

Makhe sibonise ngokubonakalayo indlela inkqubo yokugcina i-Git ehlelwe ngayo, usebenzisa umzobo olula njengomzekelo.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaApha izangqa zibonisa ukuzinikela, kwaye iintolo zibonisa ukuba yeyiphi ebhekisa kuyo. Ekubeni wonke umntu ebhekisela kulowo wangaphambili, i-C3 yeyona nto intsha, i-C2 yinguqulo endala, njalo njalo, ukuya kweyokuqala kweli sebe le-C0. Eli lisebe eliyintloko, elidla ngokubizwa ngokuba yinkosi. Uxande oluphawulwe ngokuyintloko* ngaphakathi lubonisa ukuba yeyiphi isibophelelo osebenza kuso ngoku. Kumzobo, ubona igrafu elula enesebe elinye kunye nezine zokuzibophelela. I-Git iyakwazi ukusebenza kunye neegrafu ezintsonkothileyo ezibandakanya amasebe amaninzi anokudibana abe mnye.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba

Kuhlohlwa iGit

I-Git sisixhobo esiluncedo esisebenza kwiiWindows, Mac OS, kunye neLinux. Siza kukuxelela indlela yokuyifaka kumntu ngamnye kubo. Ukufakela phantsi kweWindows OS, kufuneka ukhuphele usetyenziso kwiwebhusayithi esemthethweni https://git-scm.com/downloads kwaye uyifake.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaUkuba une-Mac OS kwaye ufake i-Homebrew umphathi wepakethe, ngenisa umyalelo:
brew install git Ukuba i-Homebrew ayifakwanga, emva koko,
kwifestile evelayo , uya kucelwa ukuba ufake i-Command Line Tools. . I-Git iya kufakwa kunye nesi sixhobo. KwiLinux Debian kunye nolunye unikezelo olusekwe kolu guqulelo, olufana noBuntu okanye iMint, lo myalelo ulandelayo uyafuneka ukuze uyifake:
sudo apt install gitKwiLinux CentOS, kufuneka ungene:
sudo yum install git Yintoni iGit, ufakelo kunye noqwalaselo-ufakelo: https://youtu.be/bkNCylkzFRk

Ukuseta kwangaphambili iGit

Emva kokufaka iGit, kufuneka uyiqwalasele ukuze ngalo lonke ixesha usenza isibophelelo, igama lombhali libonisiwe. Ukwenza oku, sebenzisa i-git kwaye wenze umyalelo:
git config –global user.name ”
Umbhali
Apha, endaweni ye “Umbhali”, sibeka igama lethu, umzekelo, “Ivan_Petrov”. Emva koko, unokuseta idilesi ye-imeyile ngalo myalelo ulandelayo:
git config –global user.email “You_adr@email.com” Kule meko, endaweni yokuba “You_adr@email.com” sibonisa idilesi ye-imeyile yokwenyani. I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba

Ukudala indawo yakho yokugcina yeGit

Ukwenza indawo yokugcina, qala uye kwifolda yeprojekthi. Umzekelo, kwiWindows oku kunokuba nguD:/GitProject. Ngenisa umyalelo:
cd
d:\GitProject Emva koko, yenza indawo yokugcina:
git init Emva koko, yongeza zonke iifayile:
git yongeza –all Ukongeza ifayile ethile, ngenisa:
git yongeza igama lefayile Ngoku unokwenza isithembiso:
git nikela -m “phawula” Amanye amanqaku ekudaleni indawo yokugcina:

  1. Indawo yokugcina inokuba neefayile ezininzi kunye neefolda ezisezantsi (ubukhulu becala ifolda yesiqhelo).
  2. Kungcono ukuba kubekho indawo yokugcina eyahlukileyo yeprojekthi nganye.
  3. Musa ukwenza iifolda zendawo yokugcina ngaphakathi kwenye indawo yokugcina (ukuphepha i-matryoshka repositories!).
  4. Utshintsho olwenziwe kwiifolda zokugcina “ziyalandelwa” yi-Git, kodwa olu tshintsho kufuneka longezwe kwindawo yokugcina ukuze ulandelelwe okanye urekhodwe.
  5. Unokulawula izinto ezibonwa nguGit. Kungcono ukungahoyi iiseti zedatha ezinkulu kakhulu okanye iifayile zexeshana.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba

Linini Lokuzibophelela

Ukuzibophelela kwi-Git kuyacetyiswa kwezi meko zilandelayo:

  • umsebenzi omtsha owongeziweyo kwiprojekthi;
  • zonke iimpazamo zilungisiwe;
  • uyavala okwanamhlanje kwaye ufuna ukugcina utshintsho lwakho.

I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba

Ukusebenzisana kwiiprojekthi zeGit

Masithi wena nabahlobo bakho nize neprojekthi entsha kwaye nigqibe ekubeni nabelane ngoxanduva. Omnye uya kuba noxanduva lomsebenzi, omnye kuyilo kunye noyilo, okwesithathu kubhaliso, ukugunyaziswa kunye nokhuseleko. Kule meko, kufuneka udibanise. Njengoko sele kukhankanyiwe, isebe yiseti yezibophelelo ezihamba ngokulandelelanayo emva kwenye. Isebe eliyintloko libizwa ngokuba yinkosi. Amanye amasebe ngawemveliso emitsha okanye ukulungisa iziphene. Ke, kwisebe elahlukileyo, unokwenza naluphi na utshintsho, kwaye emva koko udibanise neyona nto iphambili. Iingcali ezininzi azicebisi ukwenza izibophelelo kwisebe eliphambili, kodwa zincoma ukuba wenze entsha, wenze utshintsho kuyo kwaye uyidibanise kwinkosi. Ukuqala isebe elitsha, kufuneka usebenzise umyalelo:
git branch
bugFixOku kunokwenziwa ngalo myalelo ulandelayo:
git checkout –b
bugFix

Indlela yesibini ihluke kweyokuqala kule meko, emva kokuphumeza umyalelo, ngokukhawuleza ungena kwisebe elenziwe.

Kungcono ukubiza igama lesebe elitsha ngokufutshane, kodwa kwangaxeshanye ngokwaneleyo kunye negama eliqondakalayo ukuthintela ukudideka kwiprojekthi. Xa usebenzisa isixokelelwano sakho, ungakhankanya isazisi phambi kwegama lomsebenzi. Kwakhona, ungalibali ukushiya uluvo lwakho kwisibophelelo ngasinye osenzayo, ekufuneka sibonise umongo wotshintsho. Ukuze usuke kwelinye isebe uye kwelinye, kufuneka usebenzise lo myalelo ulandelayo:
git checkout
new
_1 Emva kokugqiba umsebenzi, utshintsho olwenziweyo kwisebe langoku kufuneka ludityaniswe kwi-master, masters. Ukwenza oku, jonga kuqala isebe eliyintloko usebenzisa umyalelo:
git checkout master Emva koko, hlaziya isebe lendawo:
git
tsala
imvelaphi
inkosi .Ngoku ungadibanisa amasebe:
git
merge
bugFix Lo myalelo wongeza utshintsho kwisebe elikhankanyiweyo kwi (bugFix) umyalelo kwisebe okulo, kulo mzekelo inkosi. Ukujonga imeko yangoku yesebe, kufuneka ufake lo myalelo:
git status Ukuze abanye abasebenzisi abasebenza kwiprojekthi babone utshintsho olwenziweyo, kufuneka ubatyhale kumncedisi. Ukwenza oku, kufuneka uqale uye kwisebe ofuna ukulityhala kwi-github. Ukungena inkosi, sebenzisa umyalelo:
git checkout master Emva koko, unokuyityhala kumncedisi weGithub:
git push imvelaphi inkosiUkuze omnye umntu afumane ukufikelela kwiprojekthi, udinga inkonzo yokugcina ikhowudi, umzekelo, iGithub. Ukuba usanda kujoyina iprojekthi kwaye kufuneka uyikhuphele kuwe, sebenzisa lo myalelo:
git clone https://github.com/…/….git

Apha https://github.com/…/….git yidilesi yendawo yokugcina. Inokufumaneka ngokuvula iprojekthi efunwayo kwaye ucofe iqhosha eliluhlaza elithi “Code”.

Ingcebiso ebalulekileyo!

Kuyacetyiswa ukuba uhlaziye iinkosi kumatshini wakho wasekhaya ngaphambi kokudala isebe elitsha. Ukwenza oku, ngenisa isebe elifunekayo kwaye usebenzise lo myalelo ulandelayo:
git pull origin master Ngenxa yoko, utshintsho olululo luya kukhutshelwa kwi-github. Ngendlela efanayo, unokuhlaziya nayiphi na isebe. Ukuhlaziya onke amasebe akhoyo, ungaqhuba umyalelo:
git pull

Ingxaki eqhelekileyo xa usebenza neprojekthi yeGit

Xa uzama ukudibanisa ngokuzenzekelayo utshintsho, kunokwenzeka ukuba omabini amasebe abe notshintsho kumgca omnye kulo mzekelo xa usenza umyalelo:
git merge master Le mpazamo ilandelayo ibonakala:
Ukudibanisa ngokuzenzekelayo Hello.py CONFLICT
(umxholo): Dibanisa impixano kwi Hello.py Ukudityaniswa
okuzenzekelayo akuphumelelanga; lungisa iingxabano kwaye wenze isiphumo. Kule meko, kufuneka ulungise ingxabano ngesandla. Ukwenza oku, vula ifayile apho impazamo yenzekile, kwimeko yethu ngu-Hello.py, fumanisa ukuba yintoni engalunganga kwaye ulungise ingxaki. Emva koko, yongeza ifayile elungisiweyo ngomyalelo:
git yongeza
Hello
.
py Kwaye wenze isithembiso esitsha:
git commit -m “Ingxabano edibeneyo”

Imiyalelo eluncedo-imiyalelo yeGit

Ungafumanisa ukuba isebe elisezantsi lahluke njani kwelinye usebenzisa umyalelo:
git
diff < first_branch > < second_branch > Ukucima isebe elongezelelweyo, chwetheza:

branch_namegit branch -d <
git help Fumana uncedo kumyalelo othile:
git uncedo <command_name> Git kunye neGitHub ikhosi yabaqalayo – into okufuneka uyazi malunga nofakelo, indlela yokufaka, ukwenza, indawo yokugcina, imiyalelo, ukwenza njani, ukucima kunye nokwenza utshintsho kumasebe: //youtu.be/zZBiln_2FhM



Iinkqubo ze-GUI zokusebenza kunye neGit

Kulula ukulawula iinguqulelo zesoftware hayi ngomgca womyalelo, kodwa usebenzisa ujongano lomzobo. Eminye imeko-bume yophuhliso kunye nabahleli bokubhaliweyo babonelela ngojongano lomzobo wokusebenza neGit. Kodwa kukho neenkqubo ezikhethekileyo, sidwelisa ezinye zazo:

  1. I- GitHub Desktop sisicelo somzobo esenzelwe ukusebenza kunye nenkonzo ye-Git kunye nenkonzo ye-Github, inokufanisa kwaye ikhuphele iindawo zokugcina kwi-hard drive yakho, kunye nokulawula utshintsho kwaye wenze ezinye izinto eziluncedo.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  2. I- Sourcetree ngumxhasi weGit yasimahla kwiinkqubo zeWindows kunye neMac ezenza kube lula ukusebenzisana nogcino.
  3. I- GitKraken ngumxhasi womzobo osebenziseka lula kwiiWindows, iLinux kunye neeMacO ezixhasa iinkonzo zeGitHub, iGitLab kunye neBitbucket. Ngayo, awukwazi ukusombulula kuphela imisebenzi esisiseko, kodwa wenze imisebenzi entsonkothileyo ngakumbi, umzekelo, ukudibanisa kunye nokulungelelanisa ukwenza, ukudibanisa amasebe, ukubhala imbali kwakhona.

I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaMakhe sithethe ngazo zonke iinkcukacha ngakumbi.

GitHub Desktop

I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaGitHub Desktop sisicelo sekhompyuter yakho ekuvumela ukuba usebenzisane ngqo nenkonzo yeGithub. Esi sixhobo sikuvumela ukuba ulawule iinguqulelo usebenzisa ujongano lomzobo, ukukhawulezisa uphuhliso lwakho lomsebenzi. I-GitHub Desktop ikuvumela ukuba usebenzisane neGit ngaphandle kokusebenzisa umgca womyalelo, usebenzisa kuphela ujongano lwesicelo. Kuyaphawuleka ukuba i-app ye-GitHub Desktop ayikwazi ukwenza yonke into enokwenziwa ngomgca womyalelo, kodwa ujongano lomsebenzisi ngokwalo lunikeza imiyalelo esisiseko yeGit. I-GitHub Desktop isebenza kuzo zonke iinkqubo ezisebenzayo, kubandakanya iWindows, Linux, kunye ne-macOS. Siza kukuxelela indlela yokufaka i-GitHub Desktop kwaye usebenze ngesi sicelo. Ukusebenzisa inkonzo yeGitHub kunye ne-GitHub Desktop app, Kuya kufuneka wenze iakhawunti yeGithub ukuba awunayo. Ukwenza oku, yiya kwi-GitHub. Kwikona ephezulu ngasekunene, uya kubona iqhosha elithi “Bhalisa”.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaCofa kuyo ukuze uye kwiphepha elilandelayo. Kufuneka ufake iinkcukacha zakho, kuquka idilesi ye-imeyile, igama lomsebenzisi kunye negama lokugqitha. Kwinqanaba elilandelayo, uya kucelwa ukuba uqinisekise iakhawunti yakho ngokunqakraza kwikhonkco ngaphakathi kwe-imeyile eze kwidilesi ekhankanyiweyo. Nje ukuba iqinisekisiwe, iakhawunti yeGitHub iya kwenziwa kwaye ungaqala ukusebenzisa iqonga. Ngokusetwa kweakhawunti yakho yeGitHub, ulungele ukufaka iGitHub Desktop app kwikhompyuter yakho. Ukwenza oku, vula ithebhu entsha kwisiphequluli sakho kwaye uye kwiphepha lokukhuphela isicelo.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaAbasebenzisi beWindows kufuneka bacofe iqhosha elikhulu elimfusa elithi “Khuphela iWindows”, kodwa ukuba ungumsebenzisi weMac, kufuneka ufumane umgca othi macOS phantsi kweqhosha kwaye ucofe kuyo. Kufuneka ibe yi-macOS 10.12 okanye kamva okanye i-64-bit Windows. Emva kokukhuphela, kuya kufuneka ufake isicelo, kwaye ungene ngeakhawunti eyenziwe kwinyathelo langaphambili. Awunyanzelekanga ukuba ungene kwiakhawunti yakho kwangoko, kodwa kungcono ukwenza njalo ngoku. Ukwenza indawo entsha yokugcina, vula i-GitHub Desktop kwaye ucofe kwibhokisi yesibini ezantsi ethi “Yenza iNdawo eNtsha kwi-Hard Drive yakho”. Kuya kuvela iwindow ephumayo efuna ukugcwaliswa – qala ngokuthiya indawo yokugcina. Emva kokukhetha igama, kuya kufuneka ukhethe apho liya kuba khona kwikhompyuter. Unako kwakhona ukukhangela ibhokisi ethi “Qalisa le ndawo yokugcina nge-README” ukuba ufuna ukulungisa ifayile ye-README ngokwayo kamva. Emva koko cofa “Yenza indawo yokugcina”. Ngenxa yoko, wenze indawo entsha yokugcina iGit usebenzisa iGitHub Desktop app ngaphandle kokusebenzisa isikhangeli.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaPhezulu kwiphepha elitsha, uya kubona igama lendawo yokugcina kunye nesebe. Ngapha koko, ngoku indawo yokugcina ifumaneka kuphela kwikhompyuter yakho. Ukuyipapasha, kufuneka sicofe “Papasha iRepository”. Indawo entsha yokugcina ngoku iza kuvela kwiprofayile yakho yegithub. Unokusebenzisa i-app ye-GitHub Desktop ukuseta iprojekthi yakho. Ukwenza oku, nqakraza “iSebe langoku”, kwaye emva koko ukhethe isebe elifunekayo kuluhlu lwamasebe, igama kwaye ucofe “Yenza”. Ukutshintsha phakathi kokukhanya kunye nemvelaphi emnyama, yiya kuKhetho, Imbonakalo. Ungasebenzisa i-desktop app ukwenza imisebenzi ukusebenzisana kwiiprojekthi nabanye. Imibuzo ikuvumela ukuba ugcine umkhondo wezimvo kwaye uxoxe ngalo naluphi na utshintsho kwiiprojekthi zakho. Ukwenza umba, kwibar yemenyu, sebenzisa imenyu ethi “Repository”, emva koko ucofe “Yenza uMba”.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaKungenjalo, unokuqalisa iGitHub Desktop ukusuka kumgca womyalelo. Ukwenza oku, vula i-prompt yomyalelo kwaye uthayiphe i-Github. Ungaqalisa kwakhona iGitHub Desktop ngokuchasene nendawo yokugcina ethile. Chwetheza nje i-Github elandelwa yindlela yokugcina.

Sourcetree

I-SourceTree sisicelo sasimahla sokusebenza kunye neGitHub, iBitBucket kunye neenkonzo zeMercurial. Iyafumaneka kumaqonga asebenzisa iWindows kunye ne-iOS. I-Sourcetree inomdla kwabaqalayo. Ine-GUI ecacileyo yogcino kwaye ikuvumela ukuba usebenzise amandla apheleleyo eGit ngokusebenzisa ujongano olulula. Ukufakela i-SourceTree, kufuneka ukhuphele ifayile yokufakela kwindawo esemthethweni kwaye uyiqhube. Ngexesha lokufakwa kwenkqubo, kuya kufuneka uvumele isicelo ukuba senze utshintsho kwi-hard drive, sivume isivumelwano selayisenisi. Kwakhona ngexesha lenkqubo yokufakela, i-SourceTree inokubuza ukuba uyafuna na ukufaka nayiphi na isoftware ye-git eyongezelelweyo. Kufuneka uthi “Ewe” kwaye ufake le software. Kukho iindlela ezimbini zokuqhagamshela kwinkonzo yeGithub:

  1. Ngenkqubo yogunyaziso ye-OAuth.
  2. Ngeqhosha le-SSH.

Makhe sithethe ngayo nganye kuzo. Indlela yokuqala kukudibanisa iGitHub ngeakhawunti ekude. Vumela i-SourceTree ukuqhagamshela i-akhawunti yakho ye-GitHub kwi-OAuth. Le yeyona ndlela ilula yokuqhagamshela i-GitHub kwi-SourceTree.

  1. Cofa kuqala “Yongeza iakhawunti”.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  2. Emva koko khetha i-GitHub yokubamba. Musa ukutshintsha iprotocol ekhethiweyo kunye noqinisekiso, oko kukuthi, shiya i-HTTPS kunye ne-OAuth. Emva koko ucofe u-“Refresh OAuth Token”. Usetyenziso luya kuvula ngokuzenzekelayo iphepha lewebhu kwisikhangeli sakho kwaye likubuze iinkcukacha zokungena kwiakhawunti yakho yeGitHub. Ukuba ubukade ungene kwiakhawunti yakho yeGitHub kwesi sikhangeli, eli nyathelo liza kutsitywa.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  3. Cofa “Gunyazisa i-atlassian” ukuvumela ukufikelela kwi-SourceTree kwiakhawunti yakho ye-GitHub.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  4. Emva koko, kuya kufuneka ubone umyalezo malunga nokugqitywa ngempumelelo kokuqinisekiswa. Cofa u-Kulungile.

Emva koko unokujonga yonke indawo yakho yokugcina kwi-SourceTree ngokucofa kwiakhawunti yakho.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaIndlela yesibini kukudibanisa iGitHub ngesitshixo se-SSH. Ukwenza oku, kufuneka uvelise iperi yezitshixo ze-SSH. Eli liqhosha labucala kunye neloluntu. Isitshixo sikawonke-wonke sisetyenziswa kwiakhawunti yeGitHub. Kwelinye icala, iqhosha labucala liya kongezwa kuluhlu lwezitshixo kwikhompyuter yakho. Ilandelayo yimiyalelo:

  1. Ukuvelisa iperi yesitshixo se-SSH, yiya kwimenyu ethi “Izixhobo” kwaye ucofe u-“Yenza okanye uNgenisa amaqhosha e-SSH”.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  2. Cofa u-“Velisa” kwifestile ye-PuTTY ye-generator.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  3. Hambisa isalathisi semouse kwindawo engenanto, kwaye uhambise isalathisi semouse kude kube sekupheleni kwesizukulwana.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  4. Emva kokuba ugqibile ukwenza iqhosha le-SSH, seta igama lokugqitha leqhosha lakho le-SSH.
  5. Gcina isitshixo sikawonke-wonke kunye nesitshixo sabucala.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  6. Musa ukuvala ijenereyitha yesitshixo sePuTTY. Ngena kwiakhawunti yakho ye-GitHub, cofa i-avatar icon yakho kwikona ephezulu ngasekunene, emva koko ucofe Useto.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  7. Cofa ku-“SSH kunye ne-GPG izitshixo” kwaye ukhethe “Iqhosha elitsha le-SSH”.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  8. Nika isitshixo sakho se-SSH igama kwaye ukope isitshixo sikawonke-wonke kwi-PuTTY generator kwi-key field. Emva koko, cofa “Yongeza i-SSH Key”.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  9. Buyela kwi-SourceTree, yiya ku- “Izixhobo” kwaye ucofe ku-“Qalisa i-SSH Agent”.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  10. Emva kwexesha, cofa i icon encinci yemonitha kwibar yomsebenzi.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba
  11. Ngenxa yoko, uluhlu lwamaqhosha luya kuvela. Cofa “Yongeza isitshixo” ukongeza iqhosha labucala oligcinileyo ngaphambili.I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba

Ngoku buyela kwiphepha lokugcina leGitHub kwaye uzame ukulibumba usebenzisa i-SSH. https://articles.opexflow.com/programming/chto-takoe-github-kak-polzovatsya.htm

GitKraken

I-GitKraken sesinye isicelo esenzelwe ukusebenza ngeendlela ezahlukeneyo zolawulo lwenguqulelo usebenzisa i-GUI. Ukuze uqalise, kufuneka ubhalise kwi-GitHub kwaye ufake isicelo se-GitKraken. Xa uqalisa usetyenziso, kufuneka ufake igama lakho lomsebenzisi kunye negama lokugqitha kwinkonzo yeGitHub. Ukuze ungafaki igama lokugqitha ngalo lonke ixesha, kufuneka usete isitshixo se-SSH. Ukuba awunaso isitshixo se-SSH senziwe, ungalandela isikhokelo se-GitHub ekwenzeni isitshixo esitsha. Nje ukuba unesitshixo sakho se-SSH, ungayongeza kwiakhawunti yakho yeGitHub. Ukwenza oku, khetha “Ifayile” emva koko “Ezikhethwayo” kwimenyu ephambili. Emva koko ukhethe “ubuQinisekiso” kwaye unikeze iindlela zezitshixo zakho zoluntu kunye nezabucala. Inyathelo lokuqala lokupapasha nawuphi na umxholo kwi-GitHub kukwenza indawo yokugcina indawo yokugcina umkhondo womsebenzi wakho. Olu luhlu luza kuqulatha zonke iifayile ofuna ukuyipapasha kwiGitHub. Kufuneka ulandele imiyalelo:

  1. Ukwenza i-repository entsha kwi-GitKraken, khetha “Ifayile” kwimenyu ephambili, emva koko “Init Repo”. Kuya kubakho iinketho ezininzi kwiindidi ezahlukeneyo zogcino, khetha u-“Local Only”.
  2. Emva koko khetha ifolda eya kuba yindawo yakho yokugcina entsha. Ungakhetha incwadi engenanto okanye incwadi esele iqulathe iifayile. awuyi kuphulukana notshintsho lwakho.
  3. Ibhokisi yencoko yababini elandelayo ikwaqulathe izicwangciso zetemplates ezingagqibekanga kunye neefayile zelayisensi. Shiya yonke into njengoko injalo.
  4. Cofa “Yenza indawo yokugcina”.

Awudingi akhawunti yeGithub ukuze usebenzise iGit (okanye iGitKraken) ekuhlaleni kwikhompyuter yakho. Nangona kunjalo, ukuba uceba ukusebenzisana nabanye abasebenzisi, okanye usebenzise iifayile kwiikhompyuter ezininzi, kuya kufuneka usebenzise umamkeli onje ngeGithub. Ukwenza indawo yokugcina kwi-GitHub, emva kokucofa “Init Repo”, khetha umgca “GitHub” kwaye ugcwalise ifestile evela ngolu hlobo lulandelayo:

  1. Iakhawunti -Igama leakhawunti yakho yeGitHub.
  2. Igama – igama lendawo yokugcina. Yibhale ngokusuka koonobumba, amanani kunye ne-underscore.
  3. Inkcazo – Inkcazo yokuba lo vimba uza kuqulatha ntoni.
  4. Ukufikelela -ukufikelela kwindawo ekude, nokuba kufuneka ibonakale kuye wonke umntu okanye ihlale ivulekile kuwe kuphela nakubantu obongezayo njengabadibanisi
  5. Clone emva kwe-init – shiya olu khetho lukhangelwe, oluya kwenza ukuba indawo yokugcina ifumaneke kuwe kwiGitHub.
  6. Apho udibanisa khona – khetha indawo ekhompyutheni apho ifolda yokugcina yokugcina kufuneka ibekwe khona.
  7. Ekugqibeleni, cofa iqhosha elithi “Yenza indawo yokugcina kunye neClone” .

I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhwebaEmva koko, ifolda entsha iya kuvela kwikona ephezulu ngasekhohlo ye-interface ye-GitKraken, kwaye sinokubona ulwazi oluninzi malunga nalo kwikholamu yasekhohlo. Xa uqhagamshela iGitHub kwiGitKraken, qiniseka ukuba ugunyaziso lwenziwa nokuba kukwiChrome okanye kwiFirefox, hayi kwi-Internet Explorer.

Iibhothi zokurhweba kwi-GitHub-Bot Github Umthombo ovulekileyo

Inkqubo yolawulo lwenguqulelo yeGit isetyenziswa, phakathi kwezinye izinto, ukuphuhlisa
iirobhothi zokurhweba . Nantsi eminye imizekelo yophuhliso olunjalo onokuthi ulukhuphele kwaye ulusebenzise.

Python Trading Robot

Irobhothi yokurhweba ebhalwe kwiPython ifumaneka https://github.com/areed1192/python-trading-robot, enokuqhuba izicwangciso ezizenzekelayo usebenzisa uhlalutyo lobugcisa. Irobhothi yenzelwe ukulinganisa iimeko ezininzi eziqhelekileyo: Inokubala amanqaku engozi ewonke ahambelana nepotifoliyo kwaye inike ingxelo yexesha lokwenyani ngelixa urhweba. Ikuvumela ukuba usebenze ngetheyibhile yedatha yexesha lokwenyani equlathe amaxabiso embali kunye nawangoku njengoko etshintsha. Iya kwenza inkqubo yokugcina idatha ilula kunye nokufikelela ngokukhawuleza. Ukongeza, iya kwenziwa ngokwezifiso ukuze ukwazi ukujonga ngokulula idatha yakho yezemali njengoko ingena kwaye wenze uhlalutyo olongezelelweyo ukuba luyimfuneko. Iqulethe izikhombisi ezisebenzisa amaxabiso embali kunye nawangoku.

Ibhot yokuthengisa uCassandre

I-robot yokuthengisa i-Cassandre ikhonkco kwi-GitHub https://github.com/cassandre-tech/cassandre-trading-bot – iyakwazi ukunyamekela ukudibanisa notshintshiselwano, ii-akhawunti, ii-odolo, izivumelwano kunye nezikhundla, ngoko unokugxila ekwakheni iqhinga. Ukukhutshwa ngalunye kuvavanywa ukusebenza kunye ne-Kucoin, i-Coinbase kunye ne-Binance exchanges. Ngayo, kulula ukwenza isicwangciso sakho, kuba oku kufuneka nje ubeke iimeko xa ufuna ukudala izikhundla ezimfutshane okanye ezide kwaye ubeke imithetho. Kukho umlayishi wokuvavanya i-bot kwidatha yembali. Ngexesha lovavanyo, uCassandre uya kungenisa idatha kwaye uyongeze kwisicwangciso sakho. UCassandre uya kukunceda ukuba wakhe isicwangciso esisekelwe kwilayibrari ye-ta4j yohlalutyo lobugcisa.
I-Git yabaqalayo, indlela yokufaka, ukusebenzisa, iirobhothi zokurhweba

EA31337 Mahala

EA31337 Libre at https://github.com/EA31337/EA31337-Libre is a multi-strategy Forex trading robhoti ebhalwe MQL. Irobhothi yokurhweba iza namacebo angaphezu kwama-35 onokukhetha kuwo. Isicwangciso ngasinye sinokuhlalutya imarike ngamaxesha ahlukeneyo ngokuzimeleyo. Uhlalutyo lwemarike lusekelwe kwizalathi zobugcisa ezidumileyo. Ungabhala namacebo akho.

info
Rate author
Add a comment

  1. Babubhai Senava

    Robot kevirite. Banavo

    Reply