I-Bitbucket: susa ifolda emlandweni we-Git

Kukhona umkhawulo onzima we-2 GB lapho kusingathwa i-Git ku- Bitbucket - uma lokhu kudluliwe, unokufinyelela okufundwayo kuphela okugciniwe. Ukuvikela lokhu, ngokwesibonelo, ususa futhi amafolda amakhulu noma amafayela kusuka ku-commits yakho. Kepha futhi kwezinye izimo (uma idatha yokufinyelela ingenile emlandweni noma ama-node_modules asengenile enkambeni futhi), kufanele uwuphindaphinde ngokushesha umlando we-Git ngokungafani nemvelo yawo.


IBitbucket ibhale i- athikili enemininingwane kulokhu. Ukudlula kuleyo nto eyodwa, siqala ukudala indawo entsha:

umlando we-bitbucket uhlanzekile

Ngemuva kwalokho siguqisa okugcinwe kufolda engenalutho emshinini wendawo:

6ab7686fc508ce87c52b10bb5d01ee51

Manje sakha amafolda amabili anamafayela wokuqukethwe okungahleliwe:

6ab7686fc508ce87c52b10bb5d01ee51

Manje sesicindezela inkosi:

6ab7686fc508ce87c52b10bb5d01ee51

Manje sesicishe safinyelela umkhawulo onzima we-2 GB ku-Bitbucket:

umlando we-bitbucket uhlanzekile

Futhi singabheka lokhu endaweni (bheka "usayizi-pack"):

6ab7686fc508ce87c52b10bb5d01ee51

umlando we-bitbucket uhlanzekile

Umsebenzi manje ukukhipha kabusha i- "foo" endaweni yokubambisa ukuze unciphise usayizi wayo. Ukuze wenze lokhu, siqala ngokuhlela i-HEAD yamanje bese sibhala ifolda kwi-gitignore:

6ab7686fc508ce87c52b10bb5d01ee51

Ekugcineni, sisusa ifolda sisebenzisa i- BFG Repo Cleaner (i-BFG idinga i- JRE yamanje ohlelweni njengesidingo sesistimu):

6ab7686fc508ce87c52b10bb5d01ee51

Manje sesibona umphumela endaweni:

6ab7686fc508ce87c52b10bb5d01ee51

umlando we-bitbucket uhlanzekile

Kodwa-ke, usayizi wokugcina awukakashintshi ku-Bitbucket ngoba umqoqi kadoti akakalungiswa ukude futhi i-bitbucket ayikhiphi i- "git gc" ngayo yonke i-push:

umlando we-bitbucket uhlanzekile

Ukuxhaswa nakho kuyakuqinisekisa lokhu:

umlando we-bitbucket uhlanzekile

Ngakho-ke kungcono ukuthumela isicelo ngqo ku-support@bitbucket.org ukuze usebenze ngesandla i- "git gc" endaweni yokugcina impahla. Ngemuva kwesikhashana, lokhu kwenziwe futhi yiqembu elisekelayo:

umlando we-bitbucket uhlanzekile

Uma manje usanda kuhudula ikhompiyutha kwenye ikhompyutha, yi-0.9 GB kuphela ezophela kudiski. Uma umuntu esenenguqulo engu-1.8 GB etholakala endaweni, "i-git pulp" elandelwa yi "git gc" yanele.

Emuva