Kulukhuni. Kuhlale kunzima okokuqala lapho wenza okuthile. Ikakhulukazi uma ubambisana, ukwenza amaphutha akuyona into ekhululekile. Sifuna ukwenza lula ukuthi abanikeli abasha abavulekile bafunde futhi bahlanganyele okokuqala.
Ukufunda izihloko nokufundiswa kokubuka kungasiza, kodwa yini engcono kunokwenza okwamanje izinto ezenzakalweni? Le phrojekthi ihlose ukunikeza isiqondiso nokwenza ukuthi abaqalayo benze indlela yabo yokuqala. Uma ubheka ukwenza umnikelo wakho wokuqala, landela izinyathelo ezingezansi.
Uma ungakhululekile ngomugqa womyalo, nansi izifundo ezisebenzisa amathuluzi we-GUI.
Funda lokhu kwezinye izilimi..
๐ฎ๐ณ ๐ฒ๐ฒ ๐ฎ๐ฉ ๐ซ๐ท ๐ช๐ธ ๐ณ๐ฑ ๐ฑ๐น ๐ท๐บ ๐ธ๐ฐ ๐ฏ๐ต ๐ป๐ณ ๐ต๐ฑ ๐ฎ๐ท ๐ฎ๐ท ๐ฐ๐ท ๐ฐ๐ต ๐ฉ๐ช ๐ฉ๐ฐ ๐จ๐ณ ๐น๐ผ ๐ฌ๐ท ๐ช๐ฌ ๐ธ๐ฆ ๐บ๐ฆ ๐ง๐ท ๐ต๐น ๐ฎ๐น ๐น๐ญ ๐ด ๐ต๐ฐ ๐ง๐ฉ ๐ฒ๐ฉ ๐ท๐ด ๐น๐ท ๐ธ๐ช ๐ธ๐ฎ ๐ฎ๐ฑ ๐จ๐ฟ ๐ฒ๐ฝ ๐ฟ๐ฆ ๐ฟ๐ฆ ๐ฐ๐ช ๐ณ๐ฌ ๐ท๐ธ
Uma ungenayo i-git kumshini wakho, faka.
Fometha le repo ngokuchofoza inkinobho yemfoloko phezulu kwaleli khasi. Lokhu kuzokhipha ikhophi yalesi sikhwama ku-akhawunti yakho.
Manje faka i-repo efakwe emshini wakho kumshini wakho. Yiya ku-akhawunti yakho ye-GitHub, vula i-repo evuliwe, chofoza inkinobho ye-clone bese uchofoza ikhophi ku-clipboard icon.
Vula i-console bese ugijima umyalo we-git:
git clone "url you just copied"
lapho "u-url osuvele ukopishe khona" (ngaphandle kwama-quote marks) yi-url kule ndawo yokugcina (ifomu lakho lephrojekthi). Bona izinyathelo zangaphambilini ukuthola i-url.
Ngokwesibonelo:
git clone https://github.com/this-is-you/first-contributions.git
iphi this-is-youigama lomsebenzisi lakho le-GitHub. Lapha ukopisha okuqukethwe kokulondoloza kokuqala ku-GitHub kwikhompyutha yakho.
Shintsha kwirekhodi lokugcina ekhompyutheni yakho (uma ungasekho kakade):
cd first-contributions
Manje dala igatsha usebenzisa git checkout
umyalo:
git checkout -b <add-igama lakho>
Ngokwesibonelo
git checkout -b engeza-adam-kowalski
(Igama legatsha ayidingi ukuba izwi engeza kuwo, kodwa into enengqondo ukufaka ngoba inhloso yaleli gatsha ukwengeza igama lakho uhlu.)
Manje Contributors.md
ifayela evulekile kumhleli wombhalo, engeza igama lakho kuyo. Ungayifaki ekuqaleni noma ekupheleni kwefayela. Beka noma kuphi phakathi. Manje, londoloza ifayela.
Uma uya encwadini yomhlahlandlela bese wenza umyalo git status
, uzobona kukhona izinguquko.
Engeza lezo zinguquko egatsheni owake wadala usebenzisa git add
umyalo:
git add Contributors.md
Manje yenza lezo zinguquko usebenzisa git commit
umyalo:
git commit -m "Add <your-name> to Contributors list"
ukufaka esikhundleni <your-name>
ngegama lakho.
Pushisa izinguquko zakho usebenzisa umyalo git push
:
git push origin <add-your-branch-name>
kufaka esikhundleni <add-your-branch-name>
segama legatsha owadala ngaphambilini.
Uma uya endaweni yakho yokugcina ku-GitHub, uzobona Compare & pull request
inkinobho. Chofoza kuleyo nkinobho.
Manje thumela isicelo sokudonsa.
Ngokushesha ngizohlanganisa zonke izinguquko zakho zibe yigatsha eliyinhloko laphrojekthi. Uzothola i-imeyili yesaziso uma izinguquko sezihlanganisiwe.
Siyakuhalalisela! Usanda kuqedela umshini ojwayelekile -> clone -> edit -> PR ukuhamba komsebenzi ozohlangana ngaso sonke isikhathi njengomnikelo!
Gubha umnikelo wakho bese uwabelana nabangani bakho nabalandeli ngokuya kuhlelo lokusebenza lewebhu.
Ungakwazi ukujoyina ithimba lethu elihle uma kwenzeka udinga noma yiluphi usizo noma unemibuzo. Joyina ithimba le-slack.
Manje ake siqale ngokunikela ngeminye imiklamo. Senze uhlu lwamaphrojekthi ngezinkinga ezilula ongaqala ngazo. Hlola uhlu lwamaphrojekthi kuhlelo lokusebenza lewebhu ..
GitHub Desktop | Visual Studio 2017 | GitKraken | Visual Studio Code | Atlassian Sourcetree | IntelliJ IDEA |