Ama-git namafolda angenalutho

Njengoba kwaziwa kahle ukuthi iGit ayazi folda kepha ngamafayili kuphela, izakhiwo zefolda ezingenalutho azigcini lapho okugcinwa khona. Kodwa-ke, njengoba izinhlaka eziningi namaphrojekthi zizidinga ngokuphelele, kufanele zigcine lapho. Umkhuba ojwayelekile ukudala amafayela abizwa ngokuthi yi-placeholder (ngokuvamile abizwa ngokuthi .gitkeep) acacisa ngokungenaphutha isakhiwo sefolda. Lawa mafayili angenziwa kalula futhi, uma efiswa, angaqinisekisa futhi ukuthi amanye amafayela amafolda awanakwa.


Okokuqala sakha ikhodi yokuhlola futhi sakha amafolda amancane:

434e6616f335599d241482f169f68f1b

Manje sinesakhiwo sefolda esilandelayo:

434e6616f335599d241482f169f68f1b

Isimo se- git -u asibonisi zinguquko njengoba kulindeleke:

Ama-git namafolda angenalutho

Manje sisebenzisa ukuthola ukudala amafayela wokubamba kuzo zonke izindawo ezidingekayo:

434e6616f335599d241482f169f68f1b

Manje sithole ifolda / isakhiwo sefayela elilandelayo:

434e6616f335599d241482f169f68f1b

Isimo se- git -u manje sibonisa ukuthi wonke amafolda (ngokuphelele) agcina endaweni yokugcina:

Ama-git namafolda angenalutho

Uma sifuna ukuqinisekisa ukuthi isakhiwo sefolda sihlala sigcina endaweni yokugcina, kepha hhayi noma yimaphi amafayela (ngaphandle kwamafayela wokubamba), sakha i-gitignore:

434e6616f335599d241482f169f68f1b

Sisebenzisa i- syntax yenkanyezi ephindwe kabili :

434e6616f335599d241482f169f68f1b

Umugqa wokuqala uphinde ungawanaki wonke amafayela namafolda (kunoma yiliphi izinga) kufolda "foo", umugqa wesibili awafaki wonke amafolda (kunoma yiliphi izinga) ngokubuyela kulo mthetho futhi umugqa wesithathu awafaki wonke amafayela we-.gitkeep (kunoma yiliphi izinga) .

Manje sakha amanye amafayela wokuhlola:

434e6616f335599d241482f169f68f1b

Isimo se- git manje usikhombisa umphumela oyifunayo:

Ama-git namafolda angenalutho

Emuva