Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

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

Chii chinonzi GitHub, nei ichidikanwa uye mashandisiro eGitHub, maitiro ekutanga kushandisa sevhisi – gwara revatangi.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa GitHub ndeimwe yeanonyanya kufarirwa masevhisi ekutambira yakavhurika sosi repositori. Iyo saiti inobvumidza iwe kushambadza tsika mapurojekiti uye kuteedzera shanduko dzakaitwa mune yega iteration. Vamwe vashandisi veGitHub vanogona kuongorora iyo kodhi yemushandisi uye vape yavo shanduko. Tsanangudzo iyi inopa nzwisiso pfupi chete. Zvisinei, kushanda kwesevhisi hakugumiri pane izvi. Muchinyorwa chino chekuongorora, tichatarisa Github zvakadzama.

Chii chinonzi GitHub uye Maitiro Ekutanga – Gwaro reVatangi

GitHub inzvimbo yepamhepo apo vanogadzira uye vanogadzira mapurogiramu vanogona kurodha kodhi yavanogadzira uye kushanda pamwechete kuivandudza. Chiratidzo cheGitHub ndiyo yakasimba vhezheni yekudzora system. Kudzora kwevhezheni kunobvumira vanogadzira mapurogiramu kuti vagadzirise software pasina kukanganisa software pachayo. Idzo shanduko dzakarongwa dzinogona kubatanidzwa nyore nyore mukuburitswa kuzere, asi chete mushure mekunge shanduko dzese dzaongororwa nekubvumidzwa.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Git uye GitHub – chii musiyano, kutanga kuzivana Git uye GitHub

Chii chinonzi Git?

Mhinduro: Inokurumidza uye scalable version control system . Git ndeye yemahara uye yakavhurika sosi yakagoverwa revision control system yakagadzirirwa kukurumidza uye inoshanda kune chero chirongwa, kubva kudiki kusvika kuhombe.

Chii chinonzi GitHub?

Mhinduro: ine simba gore sevhisi yekugadzirisa zvakavanzika uye yakavhurika sosi mapurojekiti.

Ndeupi musiyano mukuru?

Git isoftware yakazara-yakazara muchikamu chekutonga system chikamu, iyo yakaiswa pakombuta yemushandisi. Git inokutendera iwe kuti uite shanduko kune kodhi kuburikidza nemutsara wekuraira (Microsoft PowerShell), uye GitHub inopa kugona kuchengetedza mapurojekiti mukuwana veruzhinji.

Zvinofadza chokwadi nezve Github

  1. Huwandu hwevashandisi pasaiti gore rapfuura (maererano nenhamba musi waChikunguru 24, 2021) vaive mamirioni makumi mana nemashanu.
  2. Muna 2018, Microsoft yakawana GitHub ye7.5 bhiriyoni.
  3. Kune yakavhurika sosi git repository paGithub. Chero ani zvake anogona kuita shanduko pazviri. Iyo purojekiti inowanikwa pane chinongedzo – https://github.com/git/git?ref=stackshare
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Github features

  1. Kugona kusanganisa neanonyanya kufarirwa mapuratifomu uye masevhisi – Amazon, Google Cloud uye Code Climate.
  2. Tsigiro yeinopfuura 200 programming mitauro.
  3. High level of consolidation uye “guild solidarity”. Kana mushandisi akaburitsa purojekiti yavo paGitHub, vamwe vese venharaunda inoronga vanogona kudhawunirodha uye kuongorora basa, kunaka kwekodhi, uye dhigirii rekuoma kwayo. Vashandisi vebato rechitatu vanogona kunyevera muridzi wepurojekiti nezvematambudziko anogona kuitika, kusawirirana kwakasiyana, nezvimwe.

Iyo GitHub Inoshanda sei, Zvimiro

Zvitatu zveakakosha maficha eGithub ari branching, dhonza zvikumbiro, uye kubatanidza. Zvakakodzera kufunga nezvebasa rega rega.

Forking

Forking a project inogadzira kopi (fork) inobvumira mushandisi kuti aedze akasununguka pasina kukanganisa chirongwa chepakutanga. Gadzira maforogo uye zvikumbiro zvekudhonza: https://youtu.be/nT8KGYVurIU

Dhonza zvikumbiro

Chikumbiro chekudhonza chinoburitswa nemugadziri mushure mekunge apedza kushanda pakugadzirisa / kushandura kodhi. Panguva imwecheteyo, muridzi weprojekiti pachake anogona kuongorora shanduko dzakaitwa uye kubvunza chero mimwe mibvunzo.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Kubatanidza

Mushure mekunge muridzi abvumidza chikumbiro chekudhonza, vanosanganisa chikumbiro chekudhonza uye voisa shanduko kubva kupurojekiti yeforogo kune kodhi kodhi.

Nhungamiro – maitiro ekutanga muGithub kubva kutanga

Iri gwara rakakwana kune vese vanotanga vachangotanga kudzidza Git uye Github. Matanho anotevera achakubatsira iwe kuvaka yakakwana sisitimu yekushanda neiyi software. Iwe unozodzidza maitiro ekuita shanduko kucodebase, vhura chikumbiro chekudhonza (gadzira chikumbiro chekudhonza), uye batanidza kodhi mubazi guru. Saka ngatitangei. Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Step 0Isa Git uye Gadzira GitHub Account

  1. Enda kune yepamutemo Git webhusaiti: https://git-scm.com/downloads
  2. Dzvanya pane chinongedzo kuti utore iyo desktop desktop yeGit yeWindows uye mirira kuti kurodha kupedze.
  3. Bvisa uye mhanya iyo Git simisi nekudzvanya kaviri iyo Git.exe faira. Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa
  4. Bvumira chishandiso kuita shanduko kuPC nekudzvanya bhatani rekuti “Hongu” mubhokisi re “User Account Control” rinovhurwa.
  5. Tanga iyo Git yekuisa maitiro. Verenga iyo huru GNU Public License gwaro uye tinya Next. Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa
  6. Rondedzera nzvimbo yekuisa chirongwa, kana kusiya maitiro ekutanga. Iyo purogiramu ichaita kuti iwe ugadzire iyo Start menyu folda. Svetuka chinhu ichi.
  7. Sarudza iyo text editor yaunoda kushandisa neGit. Muhwindo rekudonhedza pasi, sarudza Notepad ++ (kana chero mamwe mavara edhita awakamboshanda nawo) uye tinya “Inotevera”. Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa
  8. Taura zita rebazi idzva reprojekiti. Iko kukosha kweiyo “master”. Zvinokurudzirwa kuti usiye iyi marongero panguva yakatarwa.
  9. Mune sarudzo dzekusarudza PATH, SSH mutengi, server zvitupa, magumo emutsara uye terminal, siya zvese sezvazviri uye tinya bhatani re “Inotevera”.
  10. Siya zvigadziriso zvese zvekutanga uye tanga kuisa chirongwa.
  11. Kana kuiswa kwapera, tarisa mabhokisi kuti uone zvinyorwa zvekuburitsa uye tanga Git Bash. Vhara hwindo rekuisa.

Unogona kunyoresa account paGithub uchishandisa iyi link: https://github.com/join. Kuti uite izvi, iwe unofanirwa kuisa iyo yekutanga kunyoresa data inodiwa mune ramangwana kuti uone iyo account.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Step 1: Tangisa Git uye gadzira yekutanga repository yemuno

Git ine maitiro maviri ekushandisa – bash (Git Bash) uye graphical mushandisi interface (Git GUI). Kutanga Git Bash, vhura iyo Start menyu – Windows, nyora git bash uye wodzvanya Enter (kana kaviri kuruboshwe-tinya pachidimbu chechirongwa). Kuti utange Git GUI, vhura iyo Start menyu – Windows, nyora git gui uye tinya Enter. Mune yedu kesi, isu tichashandisa Git Bash.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Kugadzira purojekiti nyowani muGit Bash kunosanganisira kushandisa yakakosha mirairo yekutanga repository nyowani. Kutanga iwe unofanirwa kuvhura Bash terminal nekudzvanya-kurudyi pane desktop uye ipapo mune yekudonha-pasi menyu Git Bash Pano. Muhwindo rekupedzisira pamushini wako wepanzvimbo, gadzira dhairekitori nyowani (forodha) nekunyora zvinotevera:
getrekt:Desktop getrekt $ cd ~/Desktop
getrekt:Desktop getrekt $ mkdir myproject
getrekt:Desktop getrekt $ cd myproject/
Murairo we mkdir unogadzira forodha itsva yepurojekiti. Gadzira yedu yekutanga Github repository: https://youtu.be/yHCUc6cmhcc

Danho 2. Gadzira faira idzva mune repository

Muforodha yeprojekiti, wedzera faira nyowani uchishandisa yekubata command. Nenzira yakajairwa, murairo uchagadzira faira risina chinhu rinenge riine .txt extension.

Attention! Git inochengetedza / inogadzirisa shanduko chete kune mafaera ainoteedzera. Mushure mekugadzira faira nyowani, mushandisi anogona kuteedzera chimiro chayo achishandisa iyo git mamiriro ekuraira. Iyo console ichapa runyoro rwemafaira aripo mune repository.

Paunongowedzera faira kufolda ine git repository, chirongwa chinoona shanduko mukati meprojekiti. Nekudaro, otomatiki yekutevera haigone kugoneswa, iwe unofanirwa kushandisa yakakosha kuraira iyi – git wedzera.
getrekt:myproject getrekt $ touch getrekt.txt
getrekt:myproject getrekt $ ls
getrekt.txt

Nhanho 3: Wedzera iyo faira kune yekutevera staging nharaunda

Wedzera iyo faira kune iyo staging nharaunda ine git wedzera command.
getrekt:myproject git wedzera . Nemurairo uyu, chirongwa chinotanga otomatiki kuteedzera mafaera ese anozogadzirwa mufolda yeprojekiti. Unogona kutarisa kana murairo uchishanda ne git chimiro. Izvi ndizvo zvinoita matanda paGit Bash yekuraira mutsara mushure mekunyora git chimiro:
getrekt: getrekt getrekt$ git chinzvimbo
Pabazi tenzi
Kutanga kuita
Shanduko dzinofanirwa kuitwa:
(shandisa “git rm –cached …” kusunungura)
Faili idzva rawedzerwa Zita refaira idzva:
getrekt.txt
faira idzva: getrekt.txt Log comment: Iro faira harisati raitwa, asi rava kuda kuwedzerwa.

Nhanho 4 Gadzira chibvumirano

Commit ndiyo yekutarisa yechero repository. Zvichitaurwa zviri nyore, pasuru yekuchinja inochengeta ruzivo nezve akawedzera, akagadziridzwa kana kubviswa mafaera anochengeta imwe kodhi.
getrekt:myproject getrekt $ git commit -m “MY FIRST COMMIT GUYS!”
[master (midzi-commit) b345d9a] KUTANGA KUITA!
1 faira rachinjwa, 1 kuiswa(+)
kugadzira modhi 100644 getrekt.txt

Murairo wekugadzira chibvumirano ndeye git commit -m “Commit Name”.

Attention! Mharidzo iri kumagumo emurairo inofanirwa kuve ine chirevo uye inonzwisisika kune vamwe vanogadzira chirongwa. Usadoma zvaunoita se “asdfadsf” kana “foobar”. Zvikasadaro, hapana anozonzwisisa chero chinhu, uye uchafanirwa kupedza nguva yakawanda uchidzidzima.

Danho 5. Gadzira bazi idzva rebazi

Bazi idzva ibazi rakazara reprojekiti, iro rine seti yese yezviitwa. Inomiririra kuburitswa kwakasiyana kwechigadzirwa, asi mukati meiyo shanduro control system. Mapazi anobvumira mushandisi kufamba pakati pe “nyika” dzepurojekiti.

Muzvinyorwa zvegit zviri pamutemo, tsananguro yemapazi ndeiyi: “Bazi muGit neGithub chinongedzo chinofambiswa kune chimwe chezviitwa zvekuchengetedza.”

Semuenzaniso, kana mushandisi achida kuwedzera peji nyowani kune yavo webhusaiti, vanozokwanisa kugadzira bazi idzva reiyo peji chete pasina kukanganisa muviri mukuru weprojekiti. Paanenge angopedza nazvo, anogona kubatanidza shanduko kubva kubazi rake kuita iro guru. Panyaya yebazi idzva, Git inochengeta iyo inozvipira branched kubva.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Mushure mekuita murairo, unogona kunyora git branch mune console kusimbisa kusikwa kwebazi:
getrekt:myproject getrekt $ git branch
master
* my-new- branch iri kuitika.

Ongorora: Nekumisikidza, iro rekutanga bazi regit repo rega rega rinodaidzwa kuti “master” (uye rinowanzo shandiswa satenzi mupurojekiti). Sechikamu chekurwisa rusaruraganda, vamwe vanogadzira vatanga kushandisa mamwe mazita ebazi rekutanga, senge “primary”. Nekudaro, kazhinji pane kwete, vashandisi vanogona kuona “tenzi” kana mazita akafanana anoshandiswa kunongedzera kwairi.

Zvakakodzera kuyeuka kuti inenge yese repository ine master bazi iyo inogona kutorwa seyepamutemo vhezheni yeprojekiti. Kana iri webhusaiti, saka bazi ndiyo vhezheni inoonekwa nevashandisi. Kana iri application, saka master bazi ndiko kuburitswa kunoiswa nevashandisi pakombuta yavo kana nharembozha. Aya ndiwo mashandiro echinyakare shanduro yeGit uye Github zvigadzirwa zvinoshanda. Iyo saiti yepamutemo ine mamwe magwaro akadzama ekushandisa akasiyana siyana emazita ebazi. Ruzivo rwunowanikwa paGithub pa https://github.com/github/renaming
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Munyaya yekudzokera kubazi reprojekiti uye kugadzira akawanda madhipatimendi, bazi idzva harisi kuzoteverwa neshanduro yekudzora system kudzamara mushandisi anyora otomatiki yekutevera. .

Nhanho 6Gadzira Nyowani GitHub Repository

Iyi nhanho haidiwe kana iwe uchingoda kuteedzera kodhi yako munharaunda. Asi kana iwe ukashanda muchikwata uye uchigamuchira shanduko kubva kune vamwe vanogadzira, saka unogona kushandisa ikozvino kugona kweGitHub kushandura pamwe chete kodhi yeprojekiti. Kuti ugadzire repository nyowani paGitHub, unofanirwa kupinda muhurongwa uye enda kune iyo huru peji resaiti. Kubva kumenyu huru, tinya bhatani re “New Repository”, iro riri pasi pe “+” chikwangwani padivi pemufananidzo wepamusoro pakona yekurudyi yebhatani rekufamba: Mushure mekudzvanya bhatani, GitHub inobvunza muridzi wepurojekiti. kutumidza zita repository uye nekupa tsananguro pfupi:
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Tevere, tinya bhatani rekuti “Gadzira repository” kuratidza kusikwa kwepurojekiti nyowani. Bhokisi rebhokisi richaonekwa richibvunza mushandisi kana vachida kugadzira repository kubva kutanga kana kuwedzera iripo yakagadzirwa munharaunda. Muchiitiko chechipiri, iwe unofanirwa kuisa iyo purojekiti folda kuGithub.

Attention! Kudhawunirodha repository yemunharaunda kunogonawo kuitika uchishandisa mutsara wekuraira, uye zvakanyanya mirairo git kure wedzera mavambo github_url (inogadzira rekodhi yekubatanidza kutsva kune iri kure repository), git push -u origin master (inotanga chinongedzo pakati pebazi mu. iyo mugadziri aripo uye master bazi pane iri kure server).

Izvi ndizvo zvinoita matanda paGit Bash command line:
getrekt:myproject getrekt $ git kure wedzera mabviro https://github.com/cubeton/mynewrepository.git
getrekt:myproject getrekt $ git push -u origin master
Kuverenga zvinhu: 3, zvaitwa.
Kunyora zvinhu: 100% (3/3), 263 bytes | 0 bytes/s, zvaitwa.
Yese 3 (delta 0), yakashandiswazve 0 (delta 0)
Ku https://github.com/cubeton/mynewrepository.git
* [bazi idzva] tenzi -> tenzi
Bazi tenzi akamiswa kuti atarise ari kure tenzi webazi kubva kwaakabva.

Nhanho yechinomwe: Kusundira Bazi reProjekti kuGitHub

Bazi idzva reprojekiti nenzvimbo yekuchengetera yakagadzirwa. Inosara “kusundira” bazi uye kuiendesa kune itsva Github repository. Nenzira iyi, nhengo dzechitatu-bato renharaunda dzichakwanisa kuona kodhi uye kuita shanduko kwairi. Kana zvidzokororo zvakatenderwa, muridzi weprojekiti anogona kubatanidza shanduko mushanduro huru yeprojekiti. Kusundidzira shanduko kubazi idzva paGitHub, unofanirwa kuisa iyo git push command pamutsetse wekuraira. GitHub ichagadzira otomatiki bazi munzvimbo iri kure repository:
getrekt:myproject getrekt$ git push origin my-itsva-bazi
Kuverenga zvinhu: 3, zvaitwa.
Delta compression uchishandisa anosvika 8 shinda.
Kumanikidza zvinhu: 100% (2/2), zvakaitwa.
Kunyora zvinhu: 100% (3/3), 313 bytes | 0 bytes/s, zvaitwa.
Zvose 3 (delta 0), yakashandiswazve 0 (delta 0)
Ku https://github.com/cubeton/mynewrepository.git
* [bazi idzva] my-new-branch -> my-new-branch Mushure mekuzorodza peji yeGitHub, mushandisi achaona bazi idzva rakasundidzirwa mukati. repository.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Uyezve

Shoko rekuti mavambo rinorevei mune git push origin command? Kana mushandisi akavhara nzvimbo iri kure pamushini wavo wepanzvimbo, git inogadzira yakajairwa alias yayo mune dzinenge nyaya dzese, “mabviro”, inova iri shorthand ye URL yenzvimbo iri kure repository. Kuendesa chirongwa kuGitHub: https://youtu.be/zM6z57OtR2Q

Nhanho 8. Gadzira yekutanga kudhonza chikumbiro

Chikumbiro chekudhonza (kana kudhonza chikumbiro) inzira yekuzivisa varidzi venzvimbo kuti mugadziri anoda kuita shanduko kune kodhi. Aya ndiwo maitiro iro peji rine chikumbiro chekudhonza chakawedzerwa chinotaridzika senge:
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Aya ndiwo maitiro anoita chikamu chechikamu mushure mekugadzira chikumbiro chekudhonza:
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Nhanho 9 Batanidza chikumbiro chekudhonza

Bhatani regirini re “Batanidza dhonza” pazasi rinogadzira chikumbiro chekudhonza. Mushure mekudzvanya pairi, shanduko dzakaitwa dzinowedzerwa kubazi guru reprojekiti.

Attention! Bvisa bazi mushure mekubatanidza. Nhamba huru yavo inogona kutungamirira mukuvhiringidzika mubasa. Kudzima bazi, tinya bhatani regrey “Delete bazi” mukona yezasi yekurudyi.

Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Kuti utarise mamiriro azvino ekuita, tinya pa “Commits” link pane yekutanga peji renzvimbo. Kudzvanya kucharatidza runyorwa rwese rwekuita mubazi iri. Iyo skrini inoratidza chaizvo iyo yakangogadzirwa.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Kurutivi rwekurudyi kune hash kodhi yega yega kuita. Iyo hashi kodhi identifier yakasarudzika inogona kushandiswa kana uchibatanidza maAPI uye wechitatu-bato masevhisi. Iwe unogona zvakare kutarisa kune yakatarwa kuzvipira nenhamba yeID pane desktop vhezheni yeGit Bash pamutsetse wemirairo.

Nhanho 10Dzorera Github Shanduko paMuchina Wenzvimbo

Parizvino, iyo repository muGithub system inotaridzika zvishoma zvishoma pane mushandisi pakombuta yemuno. Semuenzaniso, chisungo chakagadzirwa nemushandisi pabazi ravo uye nekubatanidzwa mubazi re master hachisipo pamushini wemuno. Kuti uwiriranisa otomatiki shanduro dzakasiyana dzepurojekiti, unofanirwa kushandisa iyo git dhonza mavambo master command (kana uchishanda pane master bazi) kana git dhonza.
getrekt:myproject getrekt $ git dhonza mavambo master
kure: Kuverenga zvinhu: 1, zvaitwa.
kure: Yese 1 (delta 0), yakashandiswazve 0 (delta 0), paki-yakashandiswazve 0
Kubva https://github.com/cubeton/mynewrepository
* tenzi webazi -> FETCH_HEAD  
23242..232433berer3444 tenzi -> mavambo/master
getrekt. txt | 1 +
1 faira yakashandurwa, 1 kuisa (+)Kuti utarise mamiriro azvino ekuraira, nyora git log pamutsara wekuraira. Ichanyora zvese zvipikirwa.
Getrekt : Myproject Getrekt $ Git Log
log commy
32dgf741Hf743F
113u7J7 @yandex.ru> Date: Fri Jan 07 17:48:00 2021 -02356 zvipira 46thf9496hf9485hkf857tg9hfj8rh4j Merge: 33fh5d 3689gfh Munyori: Mtdes Ethayandex 20: 2 Jan07: 2 Jan 10: 2011 – 2 Get@10 Jandex0 get @ 1 Jan 10: 2 Getru










Kupa 46Thf9496hf9485hkf857tg9hf8rh4j Merge : 33fh5d
_
_
_
getrekt@yandex.ru> Date: Fri Jan 07 17:58:00 2021 -02356 Uku ndiko kuita kwangu kwekutanga! Ready! Iye zvino mushandisi ave kujairana nemhando dzese dzebasa mushanduro control system. Git uye GitHub chidzidzo chevanotanga maitiro ekuisa Git uye kutanga neGithub, matavi, repositories, kuzvipira uye mamwe mazano muGitHub tsika: https://youtu.be/zZBiln_2FhM




Zvimwe zveGithub uye Git

Ngatitarisei mamwe anobatsira “chips” ayo anozobvumira mugadziri kurerutsa basa rekutonga shanduro.

Kuvhara repository kumuchina wemunharaunda

Enda kune yako GitHub repository. Mukona yepamusoro yekurudyi pamusoro pemafaera, vhura iyo “Clone kana dhawunirodha” yekudonha-pasi menyu. Kopa iyo HTTPS clone URL.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Dzokera kuGit Bash hwindo uye isa mutemo:
git clone repository_url

repository_url – URL yeizvino purojekiti ichagadzirwa. Pane kudaro, url ye repository inoiswa.

Mumuenzaniso uri pamusoro, murairo unobatanidza repository pamusoro peHTTPS. Imwe sarudzo ndeyekugadzira ma URLs pamusoro peSSH makiyi. Kuti uite izvi, unofanirwa kugadzira SSH kiyi peya paWindows uye kupa kiyi yeruzhinji kuGitHub account.

Kutsvaga kure kurepositories

Mushure mekugadzira, kopi yenzvimbo kubva kuGitHub inofanira kuoneka mudhairekitori rekushanda pakombuta. Iyo purojekiti inofanirwa kunge iine dhairekitori rine zita uye makuru mafaera. Kuti uchinje kwairi, unofanirwa kunyora unotevera kuraira:
cd git_project

Ongorora: Tsiva git_project nezita chairo renzvimbo yakadhindwa, kana tsanangura zvirimo mudhairekitori razvino nemirairo yels. Yechipiri nzira inoshandiswa mumamiriro ezvinhu apo mushandisi haakwanise kuyeuka zita repurojekiti.

GitHub desktop vhezheni – chii chinonzi GitHub Desktop, basa guru, maficha uye maitiro ekuisa

GitHub Desktop idesktop application inopa GUI yakavakirwa kudyidzana neGitHub. Kusiyana neGit, iyo desktop vhezheni yeGitHub inokutendera iwe kuti uite iwo mirairo yakafanana uchishandisa mushandisi interface nekudzvanya mabhatani, izvo zvinoita kuti zvive nyore kushanda nemarepositori.

Kuisa sei

  1. Tevedza chinongedzo – https://desktop.github.com/ Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa
  2. Tanga kurodha pasuru yekuisa yechirongwa.
  3. Dzvanya kaviri pane icon yefaira rakadhawunirodha uye enderera nekugadzika kweGithub Desktop.
  4. Tanga purogiramu kuburikidza neStart menu.
  5. Saina kuGitHub uchishandisa yako mushandisi account account.

Main kushanda

  • Kugadzira, kuwedzera uye cloning repositories.
  • Kushandisa chirongwa kubata mabhii eprojekiti.
  • Kuita shanduko pabazi.
  • Kugadzira nyaya, kudhonza zvikumbiro uye kuita.
  • Kugona kuwana mavhezheni ekutanga ezvigadzirwa zvitsva.

Github API

Iyo Github REST API iratidziro inopa vanogadzira mukana wekuwana Github data, mapurojekiti, uye repositori, pamwe nekutumira server zvikumbiro. Iyo link https://api.github.com/ ine ese maURL aunogona kutumira zviri nyore zvikumbiro zveGET:
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa Kazhinji, vanogadzira vanogadzira zvikumbiro mumutauro wePython programming muJSON fomati. Kutanga iwe unofanirwa kuwana ruzivo rwekutanga nezve repository kubva pane chinongedzo – https://api.github.com/user/repos Ruzivo rwekutanga rwunopinzwa mufaira rekugadzirisa muJSON fomati. Iine iwo makuru ma paramita nezve mushandisi – avatar, vaverengi, nhamba yezvinyorwa, kurodha, nezvimwe. Iyi data inobva yaendeswa kune server.

Kugadzirisa uye kugadzirisa mapurojekiti eGithub Desktop

Mushure mekuisa, kunyoresa account, uye kuseta iyo application, mushandisi anogona kutanga kushandisa iyo GitHub chirongwa.

Kugadzira, kuwedzera uye kugadzira repository

Kuti ugadzire repository itsva, sarudza “Faira” uye tinya bhatani re “Gadzira repository”. Kuti uwedzere chirongwa chemunharaunda, sarudza iyo “Faira” menyu uye tinya bhatani re “Wedzera Local Repository”. Kuti uite cloning, unofanira kusarudza menyu “Faira” – “Clone repository”.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Kugadzira Bazi Idzva

Kuti ugadzire bazi reprojekiti rakasiyana, vhura chikamu cheBazi Razvino uye tinya bhatani reBazi Idzva. Mushandisi achakwanisa kuona bazi muGitHub interface uye kuita chikumbiro chekukwevera kuronda shanduko.
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Safety

Iyo desktop uye webhu vhezheni yeGithub inokutendera iwe kuti ugadzirise uye uwedzere iyo yekuchengetedza nhanho yeakaundi yemushandisi. Zvese zvinoshanda zviripo muchikamu che “security settings for storage”. Zvakakodzera kufunga zvakadzama.

Security policy setting

Papeji huru repository yako, tinya:

  • “Security” – “Security Policy” – “Tanga Setup”.
  • Wedzera ruzivo nezve vhezheni dzinotsigirwa dzepurojekiti yako uye kuti ungashuma sei kusagona kugadzikana.

Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Dependency Graph Management

Girafu yekutsamira inogadzirwa otomatiki kune ese eruzhinji repositori, asi hapana chakadaro chimiro chezvakavanzika repositori. Iyo girafu inoratidza ese anobuda anovimba anoyerera uye inokutendera iwe kuona kusazvibata mupurojekiti. Kuti uise girafu rekutsamira, tinya pa “Settings” – “Security uye Analysis”. Kupesana negirafu, tinya “Gonesa” kana “Disable”.

Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa

Marezenisi

Github rezinesi inopa kushandiswa kwemhando mbiri huru
dzerezinesi :

  1. GPL imhando yerezinesi inobvumira vamwe vashandisi kushandisa basa remumwe munhu mune mamwe mapurojekiti akavhurika. Nekudaro, makambani ekutengesa haagone kuita izvi.
  2. LGPL/Commons/MIT/Apache , nezvimwewo – mushandisi anopa kodhi yake yekushandisa mahara. Vamwe vanogona kuita mari nazvo.

Pakatsanangurwa
Chii chinonzi Github, kuishandisa sei, kugadzira purojekiti, kutonga uye kugadzirisa mhando yerezinesi yeGitHub[/ Caption] Takaongorora mashandiro makuru eGithub cloud service uye chirongwa chekushanda neGit Bash repositories. . Nhanho nhanho takataura nezve maitiro ekugadzira yakazara-yakazara purojekiti mushanduro control system.

info
Rate author
Add a comment