Yadda ake Fara Sabon Ma'ajiyar Git: Gida da Remote Jagorar Saita

Don fara sabon wurin ajiya a Git, zaku iya aiwatar da matakan da suka dace a duka gida da remote matakan. Ga cikakken jagora:

 

Ƙaddamar da ma'ajiyar gida

Mataki 1: Buɗe Terminal ko Command Prompt kuma kewaya zuwa kundin adireshi inda kake son ƙirƙirar ma'ajiyar.

Mataki 2: Gudanar da umurnin git init. Wannan yana ƙirƙirar babban .git fayil ɗin ɓoye a cikin kundin adireshi na yanzu, inda Git ke adana bayanan ma'ajiya.

Mataki 3: An fara ma'ajiyar ku ta gida. Kuna iya ci gaba ta ƙara fayiloli zuwa ma'ajiyar, yin alƙawari, da sarrafa nau'ikan lambar tushe.

 

Ƙaddamar da remote wurin ajiya

Mataki 1: Samun dama ga sabis ɗin karɓar lambar tushen Git kamar GitHub, GitLab, ko Bitbucket.

Mataki 2: Shiga cikin asusunku ko ƙirƙirar sabon asusu idan ba ku da ɗaya.

Mataki na 3: Ƙirƙiri sabon ma'ajiya akan sabis ɗin talla, ba shi suna da samar da kowane mahimman bayanai.

Mataki 4: remote An ƙirƙiri ma'ajiyar ku. Sabis ɗin baƙi zai ba ku URL don samun damar ma'ajiyar.

 

Haɗa na gida da remote ma'ajiyar ajiya

Mataki 1: A cikin kundin adireshi na gida, gudanar da umarni. Sauya tare da URL na ma'ajiyar ku da kuka ƙirƙira. git remote add origin <remote-url> <remote-url> remote

Mataki 2: Yanzu an haɗa ma'ajiyar ku ta gida da remote ma'ajiyar. Kuna iya tura ayyukanku zuwa remote wurin ajiyar ta amfani da umarnin git push origin <branch-name>.

 

Lura: Don amfani da ikon turawa zuwa remote ma'ajiyar, kuna buƙatar samun dama da tabbaci akan sabis ɗin karɓar lambar tushe na Git daidai(misali, GitHub, GitLab).

Ta bin waɗannan matakan, zaku iya fara sabon wurin ajiya a Git a duka gida da remote matakan, ba ku damar sarrafa lambar tushe da haɗin gwiwa cikin sauƙi.