Sifuna ukusiza nokubonisa abanikeli abasha indlela yokuqala ngokunikela. Uma ufuna ukunikela kokuqala, landela lezinyathelo ezilandelayo.
Uma ungakhululekile ngomugqa womyalo, nazi izifundo ezisebenzisa amathuluzi we-GUI.
Uma ungenayo i-git kumshini wakho, ifake.
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
La kubalwe this-is-you
faka i-username yakho yaku 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 alidingi 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.
Pusha izinguquko zakho ngokusebenzisa umyalo git push
:
git push origin <add-your-branch-name>
kufaka esikhundleni <add-your-branch-name>
igama legatsha owadala ngaphambilini.
Uma uya endaweni yakho yokugcina ku-GitHub, uzobona Compare & pull request
inkinobho. Chofoza kuleyo nkinobho.
Manje thumela isicelo sokudonsa.
Ngizohlanganisa zonke izinguquko zakho ngokushesha 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 |