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.
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 |