Kodi GitHub ndi chiyani, chifukwa chake ikufunika komanso momwe mungagwiritsire ntchito GitHub, momwe mungayambitsire ntchito – chitsogozo kwa oyamba kumene.
GitHub ndi imodzi mwamautumiki odziwika bwino osungira malo otseguka. Tsambali limakupatsani mwayi wofalitsa ma projekiti omwe mwamakonda ndikutsata zosintha zomwe zasinthidwa nthawi iliyonse. Ogwiritsa ntchito ena a GitHub amatha kuwonanso kachidindo ka wogwiritsa ntchito ndikuwonetsa zosintha zawo. Kutanthauzira uku kumapereka chidziwitso chachidule. Komabe, magwiridwe antchito sali pa izi. Munkhani yowunikirayi, tiwona Github mwatsatanetsatane.
- Kodi GitHub ndi chiyani komanso Momwe Mungayambitsire – Buku Loyamba
- Git ndi GitHub – pali kusiyana kotani, kudziwana koyamba ndi Git ndi GitHub
- Kodi Git ndi chiyani?
- Kodi GitHub ndi chiyani?
- Kodi kusiyana kwakukulu ndi kotani?
- Zosangalatsa za Github
- Zithunzi za Github
- Momwe GitHub imagwirira ntchito, mawonekedwe
- Forking
- Kokani zopempha
- Kuphatikiza
- Upangiri – momwe mungayambire mu Github kuyambira poyambira
- Khwerero 0Ikani Git ndikupanga Akaunti ya GitHub
- Khwerero 1: Yambitsani Git ndikupanga malo oyamba am’deralo
- Gawo 2. Pangani fayilo yatsopano munkhokwe
- Khwerero 3: Onjezani fayilo kumalo otsatirira
- Khwerero 4 Konzani mpikisano
- Gawo 5. Pangani nthambi yatsopano
- Khwerero 6 Pangani Chosungira Chatsopano cha GitHub
- Khwerero 7: Kukankhira Nthambi ya Ntchitoyi ku GitHub
- Kuphatikiza apo
- Gawo 8. Pangani kukoka koyamba pempho
- Khwerero 9 Gwirizanitsani ntchito yokoka
- Khwerero 10 Bwezerani Kusintha kwa Github pa Makina Apafupi
- Zowonjezera za Github ndi Git
- Kulumikiza nkhokwe ku makina apafupi
- Kupeza nkhokwe zakutali
- Mtundu wa desktop wa GitHub – GitHub Desktop ndi chiyani, magwiridwe antchito, mawonekedwe ndi kukhazikitsa
- Momwe mungayikitsire
- Main magwiridwe antchito
- Github API
- Kuwongolera ndi kukonza ma projekiti a Github Desktop
- Kupanga, kuwonjezera ndi kupanga chosungira
- Kupanga Nthambi Yatsopano
- Chitetezo
- Kukhazikitsa ndondomeko yachitetezo
- Dependency Graph Management
- Zilolezo
Kodi GitHub ndi chiyani komanso Momwe Mungayambitsire – Buku Loyamba
GitHub ndi tsamba lapaintaneti pomwe opanga ndi opanga mapulogalamu amatha kuyika ma code omwe amapanga ndikugwirira ntchito limodzi kuti asinthe. Chizindikiro cha GitHub ndi njira yake yowongolera mtundu. Kuwongolera kwamitundu kumalola opanga mapulogalamu kuti azisintha mwamakonda mapulogalamu popanda kusokoneza pulogalamuyo. Zosintha zomwe zasankhidwa zitha kuphatikizidwa mosavuta ndikumasulidwa kwathunthu, koma pokhapokha zosintha zonse zikawunikiridwa ndikuvomerezedwa.
Git ndi GitHub – pali kusiyana kotani, kudziwana koyamba ndi Git ndi GitHub
Kodi Git ndi chiyani?
Yankho: A mofulumira ndi scalable mtundu ulamuliro dongosolo . Git ndi njira yaulere komanso yotseguka yosinthidwa yosinthidwa yopangidwa kuti ikhale yachangu komanso yothandiza pantchito iliyonse, kuyambira yaying’ono mpaka yayikulu kwambiri.
Kodi GitHub ndi chiyani?
Yankho: ntchito yamtambo yamphamvu yoyendetsera zochitika zapadera ndi mapulojekiti otseguka.
Kodi kusiyana kwakukulu ndi kotani?
Git ndi pulogalamu yathunthu m’gulu la control system, yomwe imayikidwa pakompyuta ya wogwiritsa ntchito. Git imakulolani kuti musinthe ma code kudzera pamzere wolamula (Microsoft PowerShell), ndipo GitHub imapereka mwayi wosunga ma projekiti pofikira anthu.
Zosangalatsa za Github
- Chiwerengero chachikulu cha ogwiritsa ntchito patsamba lino chaka chatha (malinga ndi ziwerengero pa Julayi 24, 2021) anali anthu 45 miliyoni.
- Mu 2018, Microsoft idapeza GitHub kwa $ 7.5 biliyoni.
- Pali malo otseguka a git pa Github. Aliyense akhoza kusintha. Ntchitoyi ikupezeka pa ulalo – https://github.com/git/git?ref=stackshare
[id id mawu = “attach_12723” align = “aligncenter” wide = “751”]
Chitsanzo chankhokwe cha GitHub[/ mawu]
Zithunzi za Github
- Kutha kuphatikiza ndi nsanja ndi ntchito zodziwika bwino – Amazon, Google Cloud ndi Code Climate.
- Thandizo la zilankhulo zopitilira 200.
- Kuphatikizika kwakukulu komanso “mgwirizano wamagulu”. Wogwiritsa ntchito akasindikiza pulojekiti yawo pa GitHub, ena onse omwe amakonza mapulogalamu amatha kutsitsa ndikuwunika ntchito, mtundu wa code, komanso kuchuluka kwake. Ogwiritsa ntchito gulu lachitatu akhoza kuchenjeza mwiniwake wa polojekitiyo za zovuta zomwe zingatheke, mikangano yosiyana, ndi zina zotero.
Momwe GitHub imagwirira ntchito, mawonekedwe
Zinthu zitatu zofunika kwambiri za Github ndi nthambi, kukoka zopempha, ndi kuphatikiza. Ndikoyenera kuganizira ntchito iliyonse padera.
Forking
Kupanga pulojekiti kumapanga kopi (foloko) yomwe imalola wogwiritsa ntchito kuyesa momasuka popanda kukhudza polojekiti yoyambirira. Pangani mafoloko ndi zopempha kukoka: https://youtu.be/nT8KGYVurIU
Kokani zopempha
Pempho kukoka limasindikizidwa ndi wopanga akamaliza kukonza / kusintha kachidindo. Panthawi imodzimodziyo, mwiniwake wa polojekitiyo akhoza kubwereza zomwe zasintha ndikufunsa mafunso ena owonjezera.
Kuphatikiza
Mwiniwakeyo atavomereza pempho lachikoka, amaphatikiza kukoka ndikuyika zosintha kuchokera ku polojekiti yopangidwa ndi foloko kupita ku code source.
Upangiri – momwe mungayambire mu Github kuyambira poyambira
Bukuli ndilabwino kwa onse oyamba kumene omwe akuyamba kumene kuphunzira Git ndi Github. Zotsatirazi zikuthandizani kuti mupange dongosolo labwino kwambiri logwirira ntchito ndi pulogalamuyi. Muphunzira momwe mungasinthire ma codebase, tsegulani chopempha (pangani kukoka), ndikuphatikiza nambala munthambi yayikulu. Choncho tiyeni tiyambe. [id id mawu = “attach_12726” align = “aligncenter” wide = “740”]
Dashboard ya akaunti ya GitHub[/ mawu]
Khwerero 0Ikani Git ndikupanga Akaunti ya GitHub
- Pitani patsamba lovomerezeka la Git: https://git-scm.com/downloads
- Dinani pa ulalo kuti mutsitse mtundu wa desktop wa Git wa Windows ndikudikirira kuti kutsitsa kumalize.
- Chotsani ndikuyendetsa Git installer podina kawiri fayilo ya Git.exe.
- Lolani pulogalamuyo kuti isinthe pa PC podina batani la “Inde” mubokosi la “User Account Control” lomwe limatsegulidwa.
- Yambitsani njira yoyika Git. Werengani chikalata chachikulu cha GNU Public License ndikudina Next.
- Tchulani malo oti muyikepo pulogalamuyo, kapena siyani zomwe zatsala. Pulogalamuyi idzakupangitsani kuti mupange foda ya menyu Yoyambira. Dumphani chinthu ichi.
- Sankhani zolemba zomwe mukufuna kugwiritsa ntchito ndi Git. Pazenera lotsitsa, sankhani Notepad ++ (kapena mkonzi wina uliwonse womwe mudagwira nawo ntchito) ndikudina “Kenako”.
- Tchulani dzina la nthambi yatsopano ya polojekiti. Mtengo wokhazikika ndi “master”. Ndikofunikira kuti musiye zosinthazi mosakhazikika.
- Muzosankha posankha PATH, kasitomala wa SSH, satifiketi za seva, mathero a mzere ndi terminal, siyani zonse momwe zilili ndikudina batani la “Kenako”.
- Siyani makonda onse osakhazikika ndikuyamba kukhazikitsa pulogalamuyo.
- Kukhazikitsa kukamaliza, yang’anani mabokosi kuti muwone zolemba zotulutsa ndikuyamba Git Bash. Tsekani zenera loyika.
Mutha kulembetsa akaunti pa Github pogwiritsa ntchito ulalo wotsatirawu: https://github.com/join. Kuti muchite izi, muyenera kulowa zoyambira zolembetsa zomwe zikufunika mtsogolomo kuti mutsimikizire akauntiyo.
Khwerero 1: Yambitsani Git ndikupanga malo oyamba am’deralo
Git ili ndi mitundu iwiri yogwiritsira ntchito – bash (Git Bash) ndi mawonekedwe ogwiritsa ntchito (Git GUI). Kuti muyambitse Git Bash, tsegulani menyu Yoyambira – Windows, lembani git bash ndikudina Enter (kapena dinani kawiri kumanzere panjira yachidule ya pulogalamuyi). Kuti mutsegule Git GUI, tsegulani menyu Yoyambira – Windows, lembani git gui ndikudina Enter. Kwa ife, tidzagwiritsa ntchito Git Bash.
Kupanga pulojekiti yatsopano ku Git Bash kumaphatikizapo kugwiritsa ntchito malamulo apadera kuti ayambitse malo atsopano. Choyamba muyenera kutsegula terminal ya Bash ndikudina kumanja pa desktop kenako ndikutsitsa Git Bash Pano. Pazenera lakutsogolo pamakina anu am’deralo, pangani chikwatu chatsopano (foda) polemba izi:
getrekt:Desktop getrekt $ cd ~/Desktop
getrekt:Desktop getrekt $ mkdir myproject
getrekt:Desktop getrekt $ cd myproject/
Lamulo la mkdir limapanga chikwatu chatsopano cha polojekiti. Pangani malo athu oyamba a Github: https://youtu.be/yHCUc6cmhcc
Gawo 2. Pangani fayilo yatsopano munkhokwe
Mu chikwatu cha polojekiti, onjezani fayilo yatsopano pogwiritsa ntchito touch command. Munjira yokhazikika, lamulo lidzapanga fayilo yopanda kanthu yomwe idzakhala ndi .txt extension.
Chenjerani! Git imasunga / imawongolera zosintha pamafayilo omwe amatsata. Pambuyo popanga fayilo yatsopano, wogwiritsa ntchito amatha kuyang’anira momwe alili pogwiritsa ntchito git status command. The console ipereka mndandanda wamafayilo omwe alipo m’malo osungirako.
Mukangowonjezera fayilo kufoda yomwe ili ndi git repository, pulogalamuyo idzawona kusintha mkati mwa polojekitiyo. Komabe, kutsatira basi sikudzathandizidwa, muyenera kugwiritsa ntchito lamulo lapadera pa izi – git add.
getrekt:myproject getrekt $ touch getrekt.txt
getrekt:myproject getrekt $ ls
getrekt.txt
Khwerero 3: Onjezani fayilo kumalo otsatirira
Onjezani fayilo kumalo osungira ndi git add command.
getrekt:myproject git add . Ndi lamulo ili, pulogalamuyi idzayamba kufufuza mafayilo onse omwe adzapangidwe mufoda ya polojekiti. Mutha kuwona ngati lamulo likugwira ntchito ndi git. Izi ndi momwe zipika zimawonekera pa mzere wa lamulo la Git Bash mutalemba git status:
getrekt: getrekt getrekt$ git status
Pa mbuye wa nthambi
Koyamba kuchita
Zosintha:
(gwiritsani ntchito “git rm –cached …” kuti musasinthe)
Fayilo yatsopano yawonjezedwa
Dzina lafayilo latsopano: getrekt.txt
Fayilo yatsopano: getrekt.txt Log Comment: Fayilo sinapatsidwebe , koma yatsala pang’ono kuwonjezedwa.
Khwerero 4 Konzani mpikisano
Kudzipereka ndiye poyang’anira nkhokwe iliyonse. Mwachidule, phukusi losintha lomwe limasunga zambiri za mafayilo owonjezeredwa, osinthidwa kapena ochotsedwa omwe amasunga ma code ena.
getrekt:myproject getrekt $ git commit -m “MY FIRST COMIT GUYS!”
[master (root-commit) b345d9a] ZOCHITIKA ZOYAMBA!
Fayilo imodzi yasinthidwa, kuyika 1 (+)
kupanga mawonekedwe 100644 getrekt.txt
Lamulo lopanga kudzipereka ndi git commit -m “Commit Name”.
Chenjerani! Uthenga womwe uli kumapeto kwa lamuloli uyenera kukhala watanthauzo komanso womveka kwa ena oyambitsa ntchito. Osatchula zomwe mwachita ngati “asdfadsf” kapena “foobar”. Apo ayi, palibe amene angamvetse kalikonse, ndipo mudzayenera kuthera nthawi yambiri mukuzichotsa.
Gawo 5. Pangani nthambi yatsopano
Nthambi Yatsopano ndi nthambi yonse ya polojekitiyi, yomwe imakhala ndi magawo ambiri. Imayimira kutulutsidwa kosiyana kwa chinthucho, koma mkati mwa dongosolo lowongolera. Nthambi zimalola wogwiritsa ntchito kusuntha pakati pa “mayiko” a polojekiti.
M’zolemba zovomerezeka za git, kufotokozera kwa nthambi ndi: “Nthambi ku Git ndi Github ndi cholozera chosunthika ku chimodzi mwazochita zosungira.”
Mwachitsanzo, ngati wogwiritsa ntchito akufuna kuwonjezera tsamba latsopano patsamba lawo, atha kupanga nthambi yatsopano patsamba lomwelo popanda kukhudza gawo lalikulu la polojekitiyo. Akangomaliza, amatha kuphatikiza zosintha kuchokera kunthambi yake kukhala yayikulu. Pankhani ya nthambi yatsopano, Git amatsatira zomwe adachitapo.
Mukamaliza kulamula, mutha kulemba nthambi ya git mu kontena kuti mutsimikizire kukhazikitsidwa kwa nthambi:
getrekt:myproject getrekt $ git nthambi ya nthambi
*
my-new- branch ikuchitika pano.
Chidziwitso: Mwachikhazikitso, nthambi yoyamba ya git repo iliyonse imatchedwa “master” (ndipo nthawi zambiri imagwiritsidwa ntchito ngati mbuye pantchito). Monga gawo lolimbana ndi tsankho, okonza ena ayamba kugwiritsa ntchito mayina ena a nthambi yosasinthika, monga “primary”. Komabe, nthawi zambiri, ogwiritsa ntchito amatha kuwona “mbuye” kapena mayina ofanana omwe amagwiritsidwa ntchito kutanthauza.
Ndikoyenera kukumbukira kuti pafupifupi nkhokwe iliyonse ili ndi nthambi yayikulu yomwe ingaganizidwe ngati mtundu wovomerezeka wa polojekitiyi. Ngati ndi tsamba la webusayiti, ndiye kuti nthambi ndiye mtundu womwe ogwiritsa ntchito amawona. Ngati ndi pulogalamu, ndiye kuti nthambi yayikulu ndiyo kumasulidwa komwe ogwiritsa ntchito amayika pamakompyuta awo kapena pazida zam’manja. Umu ndi momwe kusinthika kwachikhalidwe kwa zinthu za Git ndi Github kumagwirira ntchito. Tsamba lovomerezeka lili ndi zolembedwa zambiri zogwiritsira ntchito mayina anthambi osiyanasiyana. Zambirizi zikupezeka pa Github pa https://github.com/github/renaming
Pankhani yobwerera ku nthambi ya projekiti ndikupanga zinthu zingapo, nthambi yatsopanoyo sidzatsatiridwa ndi makina owongolera mpaka wogwiritsa ntchito atalemba kutsatira. .
Khwerero 6 Pangani Chosungira Chatsopano cha GitHub
Izi sizikufunika ngati mukufuna kutsatira khodi yanu kwanuko. Koma ngati mumagwira ntchito m’gulu ndikuvomereza zosintha kuchokera kwa opanga mapulogalamu ena, ndiye kuti mutha kugwiritsa ntchito luso la GitHub kuti musinthe limodzi khodi ya polojekiti. Kuti mupange chosungira chatsopano pa GitHub, muyenera kulowa mudongosolo ndikupita patsamba lalikulu latsambalo. Kuchokera pamndandanda waukulu, dinani batani la “New Repository”, lomwe lili pansi pa chizindikiro cha “+” pafupi ndi chithunzi chambiri chomwe chili pakona yakumanja kwa kapamwamba kolowera: Mukadina batani, GitHub ifunsa mwini projekitiyo. kutchula malo osungiramo ndikupereka kufotokozera mwachidule:
Kenako, dinani batani la “Pangani posungira” kuti mutsimikizire kupangidwa kwa pulojekiti yatsopano. Bokosi la zokambirana lidzawoneka likufunsa wogwiritsa ntchito ngati akufuna kupanga posungira kuchokera pachiyambi kapena kuwonjezera yomwe ilipo yomwe idapangidwa kwanuko. Chachiwiri, muyenera kukweza chikwatu cha polojekiti ku Github.
Chenjerani! Kutsitsa malo am’deralo kumathanso kuchitika pogwiritsa ntchito mzere wolamula, ndipo makamaka malamulo a git remote add origin github_url (amapanga mbiri ya kulumikizana kwatsopano kumalo akutali), git push -u origin master (amakhazikitsa kugwirizana pakati pa nthambi mu yomwe wopangayo ali ndi nthambi ya master pa seva yakutali).
Izi ndi zomwe zipika zimawonekera pamzere wa Git Bash:
getrekt:myproject getrekt $ git remote add source https://github.com/cubeton/mynewrepository.git
getrekt:myproject getrekt $ git push -u origin master
Kuwerengera zinthu: 3, kuchita.
Kulemba zinthu: 100% (3/3), 263 byte | 0 mabayiti/s, zachitika.
Total 3 (delta 0), yogwiritsidwanso ntchito 0 (delta 0)
Ku https://github.com/cubeton/mynewrepository.git
* [new branch] master -> master
Nthambi Master adakhazikitsidwa kuti azitsata mbuye wanthambi wakutali kuchokera komwe adachokera.
Khwerero 7: Kukankhira Nthambi ya Ntchitoyi ku GitHub
Nthambi yatsopano ya polojekiti ndi malo osungira apangidwa. Ikutsalira “kukankhira” nthambi ndikuitumiza kumalo atsopano a Github. Mwanjira iyi, mamembala a gulu lachitatu azitha kuwona code ndikusintha. Ngati zosinthidwazo zavomerezedwa, mwiniwake wa polojekitiyo akhoza kuphatikiza zosinthazo kukhala gawo lalikulu la polojekitiyo. Kuti mukankhire zosintha kunthambi yatsopano pa GitHub, muyenera kulowa git push command pamzere wolamula. GitHub imangopanga nthambi pamalo akutali:
getrekt:myproject getrekt$ git push origin my-watsopano-nthambi
Kuwerengera zinthu: 3, zachitika.
Kupanikizika kwa Delta pogwiritsa ntchito ulusi mpaka 8.
Kupondereza zinthu: 100% (2/2), zachitika.
Kulemba zinthu: 100% (3/3), 313 byte | 0 mabayiti/s, zachitika.
Zonse 3 (delta 0), zogwiritsidwanso ntchito 0 (delta 0)
Kwa https://github.com/cubeton/mynewrepository.git
* [nthambi yatsopano] my-new-branch -> my-new-branch Pambuyo potsitsimutsa tsamba la GitHub, wogwiritsa ntchito adzawona nthambi yatsopano yomwe yakankhidwira mu posungira.
Kuphatikiza apo
Kodi mawu akuti chiyambi amatanthauza chiyani mu lamulo la git push origin? Wogwiritsa akamagwiritsa ntchito malo akutali pamakina awo am’deralo, git imapanga dzina lodziwika bwino pafupifupi nthawi zonse, “chiyambi”, chomwe chimakhala chidule cha ulalo wa malo akutali. Kutumiza projekiti ku GitHub: https://youtu.be/zM6z57OtR2Q
Gawo 8. Pangani kukoka koyamba pempho
Kupempha kukoka (kapena kukoka) ndi njira yodziwitsira eni ake osungira kuti wopanga akufuna kusintha ma code. Umu ndi momwe tsamba lomwe lili ndi pempho lachikoka likuwonjezedwa likuwoneka motere:
Umu ndi momwe mawonekedwe agawo amawonekera atapanga pempho kukoka:
Khwerero 9 Gwirizanitsani ntchito yokoka
Batani lobiriwira la “Merge kukoka” pansi limapanga pempho kukoka. Mukadina, zosintha zomwe zasinthidwa zimawonjezeredwa kunthambi yayikulu ya polojekitiyo.
Chenjerani! Chotsani nthambi pambuyo pa kuphatikiza. Ambiri mwa iwo angayambitse chisokonezo mu polojekitiyi. Kuchotsa nthambi, dinani imvi “Chotsani nthambi” batani m’munsi kumanja ngodya.
Kuti muwone momwe zinthu ziliri pano, dinani ulalo wa “Commits” patsamba loyamba lazosungirako. Kudina kudzawonetsa mndandanda wonse wazochita munthambi iyi. Chithunzicho chikuwonetsa ndendende chomwe changopangidwa kumene.
Kumanja ndi nambala ya hashi ya chilichonse. Khodi ya hashi ndi chizindikiritso chapadera chomwe chingagwiritsidwe ntchito polumikiza ma API ndi mautumiki a chipani chachitatu. Mutha kulozeranso kudzipereka kwina ndi nambala ya ID pakompyuta ya Git Bash pamzere wolamula.
Khwerero 10 Bwezerani Kusintha kwa Github pa Makina Apafupi
Pakadali pano, chosungira mu Github system chikuwoneka chosiyana pang’ono ndi wogwiritsa ntchito pakompyuta yakomweko. Mwachitsanzo, kudzipereka komwe wogwiritsa ntchito adapanga panthambi yake ndikuphatikizidwa munthambi yayikulu kulibe pamakina akomweko. Kuti mulunzanitse mitundu yosiyanasiyana ya polojekiti, muyenera kugwiritsa ntchito git pull origin master command (pogwira ntchito pa master nthambi) kapena git pull.
getrekt:myproject getrekt $ git kukoka chiyambi master
kutali: Kuwerengera zinthu: 1, zachitika.
kutali: Total 1 (delta 0), yogwiritsidwanso ntchito 0 (delta 0), paketi-yogwiritsidwanso ntchito 0
Kuchokera https://github.com/cubeton/mynewrepository
* mbuye wa nthambi -> FETCH_HEAD
23242..232433berer3444 master -> chiyambi/master
getrekt. txt | Fayilo 1 +
1 yasinthidwa, 1 kuika (+)Kuti muwone momwe lamulo ilili, lembani git log pamzere wolamula. Idzalemba zolemba zonse.
getrekt:myproject getrekt $ git log
commit 32dgt472hf74yh7734hf747fh373hde7r3heduer73hfhf
Merge: 3fg4dd 34fg3u7j7
Author: Mtdes Ethan < getrekt@yandex.ru>
Date: Fri Sep 11 17:48:11 2015 -0400
Merge /cubeton/mynewrepository commit
44hgfh7f74hdu9jt93hf9ifejffe
Author: Mtdes Ethan < getrekt @yandex.ru>
Tsiku: Lachisanu Jan 07 17:48:00 2021 -02356 perekani
46thf9496hf9485hkf857tg9hfj8rh4j
Merge: 33fh5d 3689gfh
Wolemba: Mtdes Ethaandex 20:20 Jan070: 2015 Jan07 – 2 getru @ 5 Jan070 getru Dakt0
:
commit 46thf9496hf9485hkf857tg9hfj8rh4j
Merge: 33fh5d 3689gfh
Author: Mtdes Ethan < getrekt@yandex.ru>
Date: Fri Jan 07 17:55:00 2021 -02356
Added some more text to my file
commit 355904-43hg940fg959hfg0g95jjgdgdfgf57i86f
Merge: 343fggdd 53efhgffddg
Author: Mtdes Ethan < getrekt@yandex.ru>
Tsiku: Lachisanu Jan 07 17:58:00 2021 -02356
Uku ndikudzipereka kwanga koyamba! Okonzeka! Tsopano wosuta amadziwa mitundu yonse ya ntchito mu dongosolo ulamuliro Baibulo. Maphunziro a Git ndi GitHub kwa oyamba kumene a momwe mungayikitsire Git ndikuyamba ndi Github, nthambi, nkhokwe, zochita ndi malingaliro ena muzochita za GitHub: https://youtu.be/zZBiln_2FhM
Zowonjezera za Github ndi Git
Tiyeni tiwone “matchipu” ena othandiza omwe angalole wopanga kuti achepetse ntchito pakuwongolera mtundu.
Kulumikiza nkhokwe ku makina apafupi
Pitani ku malo anu a GitHub. Mu ngodya yakumanja pamwamba pa mndandanda wa mafayilo, tsegulani “Clone kapena download” menyu yotsitsa. Koperani ulalo wa HTTPS clone.
Bwererani pawindo la Git Bash ndikulowetsa lamulo:
git clone repository_url
repository_url – URL ya polojekiti yomwe ikuyenera kupangidwa. M’malo mwake, ulalo wa nkhokwe umayikidwa.
Muchitsanzo chomwe chili pamwambapa, lamuloli limagwirizanitsa chosungira pa HTTPS. Njira ina ndikugwirizanitsa ndi ma URL pa makiyi a SSH. Kuti muchite izi, muyenera kupanga makiyi a SSH pa Windows ndikuyika kiyi yapagulu ku akaunti ya GitHub.
Kupeza nkhokwe zakutali
Pambuyo pojambula, kopi ya malo osungiramo kuchokera ku GitHub iyenera kuwonekera mu bukhu logwira ntchito pa kompyuta. Pulojekitiyi iyenera kukhala ndi chikwatu chokhala ndi dzina ndi mafayilo akulu. Kuti musinthe, muyenera kulemba lamulo ili:
cd git_project
Zindikirani: Bwezerani git_project ndi dzina lenileni la malo otsitsidwa, kapena tchulani zomwe zili m’ndandanda wamakono ndi lamulo la ls. Njira yachiwiri imagwiritsidwa ntchito panthawi yomwe wogwiritsa ntchito sangathe kukumbukira dzina la polojekitiyo.
Mtundu wa desktop wa GitHub – GitHub Desktop ndi chiyani, magwiridwe antchito, mawonekedwe ndi kukhazikitsa
GitHub Desktop ndi pulogalamu yapakompyuta yomwe imapereka kulumikizana kwa GUI ndi GitHub. Mosiyana ndi Git, mtundu wapakompyuta wa GitHub umakupatsani mwayi wotsatira malamulo omwewo pogwiritsa ntchito mawonekedwe a ogwiritsa ntchito podina mabatani, zomwe zimapangitsa kuti zikhale zosavuta kugwira ntchito ndi nkhokwe.
Momwe mungayikitsire
- Tsatirani ulalo – https://desktop.github.com/
- Yambani kutsitsa phukusi loyika pulogalamuyo.
- Dinani kawiri pa chithunzi cha fayilo yotsitsidwa ndikupitiriza kukhazikitsa Github Desktop.
- Tsegulani pulogalamuyo kudzera pa menyu Yoyambira.
- Lowani ku GitHub pogwiritsa ntchito zambiri za akaunti yanu.
Main magwiridwe antchito
- Kupanga, kuwonjezera ndi cloning nkhokwe.
- Kugwiritsa ntchito pulogalamu yoyang’anira ma tabo a polojekiti.
- Kusintha ku nthambi.
- Kupanga zovuta, zopempha zokoka ndi kuchita.
- Kutha kupeza mitundu yoyambirira yazinthu zatsopano.
Github API
Github REST API ndi mawonekedwe omwe amapatsa omanga mwayi wopeza deta ya Github, mapulojekiti, ndi nkhokwe, komanso kutumiza zopempha za seva. Ulalo wa https://api.github.com/ uli ndi ma URL onse omwe mungatumizeko zopempha zosavuta za GET:
Nthawi zambiri, opanga amapanga zopempha muchilankhulo cha Python chamtundu wa JSON. Choyamba muyenera kupeza chidziwitso chofunikira chokhudza chosungira kuchokera ku ulalo – https://api.github.com/user/repos Mfundo zoyambira zimalowetsedwa mu fayilo yosinthira mu mtundu wa JSON. Ili ndi magawo akulu okhudza wogwiritsa ntchito – avatar, owerenga, kuchuluka kwa nkhokwe, kutsitsa, ndi zina zambiri. Deta iyi imatumizidwa ku seva.
Kuwongolera ndi kukonza ma projekiti a Github Desktop
Pambuyo kukhazikitsa, kulembetsa akaunti, ndikukhazikitsa pulogalamuyo, wogwiritsa ntchito akhoza kuyamba kugwiritsa ntchito pulogalamu ya GitHub.
Kupanga, kuwonjezera ndi kupanga chosungira
Kuti mupange malo atsopano, sankhani “Fayilo” ndikudina batani la “Pangani posungira”. Kuti muwonjezere pulojekiti yakumaloko, sankhani menyu ya “Fayilo” ndikudina batani la “Add Local Repository”. Kwa cloning, muyenera kusankha menyu “Fayilo” – “Clone repository”.
Kupanga Nthambi Yatsopano
Kuti mupange nthambi yosiyana ya polojekiti, tsegulani gawo la Nthambi Yapano ndikudina batani la Nthambi Yatsopano. Wogwiritsa azitha kuwona nthambi mu mawonekedwe a GitHub ndikupanga pempho kukoka kuti awone zosintha.
Chitetezo
Tsamba la desktop ndi tsamba la Github limakupatsani mwayi wokonza ndikuwonjezera chitetezo cha akaunti ya ogwiritsa ntchito. Zochita zonse zimapezeka mu gawo la “chitetezo chosungirako”. Ndikoyenera kulingalira mwatsatanetsatane.
Kukhazikitsa ndondomeko yachitetezo
Patsamba lalikulu lankhokwe yanu, dinani:
- “Chitetezo” – “Ndondomeko ya Chitetezo” – “Yambani Kukonzekera”.
- Onjezani zambiri zamitundu yothandizidwa ya pulojekiti yanu ndi momwe munganenere zovuta zomwe zingatheke.
Dependency Graph Management
Ma graph odalira amapangidwa okha m’malo onse osungira anthu, koma palibe mawonekedwe otere a nkhokwe zachinsinsi. Grafu imazindikiritsa mayendedwe onse omwe amadalira ndipo imakupatsani mwayi wozindikira zovuta mu polojekiti. Kuti muyike graph yodalira, dinani “Zikhazikiko” – “Security and Analysis”. Mosiyana ndi graph, dinani “Yambitsani” kapena “Letsani”.
Zilolezo
Chilolezo cha Github chimapereka kugwiritsa ntchito mitundu iwiri yayikulu
yamalayisensi :
- GPL ndi mtundu wa laisensi yomwe imalola ogwiritsa ntchito ena kugwiritsa ntchito ntchito za wina pamapulojekiti ena otsegula. Komabe, makampani azamalonda sangathe kuchita izi.
- LGPL/Commons/MIT/Apache , etc. – wogwiritsa ntchito amapereka code yake kuti agwiritse ntchito kwaulere. Ena akhoza kupanga ndalama ndi izo.
Komwe mtundu wa layisensi ya GitHub watchulidwa[/ mawu] Tawunikanso magwiridwe antchito amtundu wa Github ndi pulogalamu yogwirira ntchito ndi nkhokwe za Git Bash . Pang’ono ndi pang’ono tinakambirana za momwe tingapangire pulojekiti yokwanira mu dongosolo lolamulira.