×ðÁú¿­Ê±¹ÙÍøµÇ¼

gitlabÔõÑùÉÏ´«Îļþ

gitlabÊÇÒ»¸öÃæÏò¿ª·¢ÕߵĴúÂëÍйÜƽ̨£¬ÆäÇ¿Ê¢µÄ°æ±¾ÖÎÀíºÍЭ×÷¹¦Ð§Ô½À´Ô½Êܵ½¿ª·¢ÕßµÄÇàíù¡£³ýÁË´úÂë°æ±¾ÖÎÀí£¬gitlab»¹ÌṩÁËÉÏ´«ÎļþµÄ¹¦Ð§£¬Õâ¹ØÓÚһЩÏîÄ¿À´ËµºÜÊÇÐëÒª¡£ÏÂÃæÎÒÃÇÀ´¿´¿´gitlabÔõÑùÉÏ´«Îļþ¡£

Ò»¡¢ÉÏ´«ÎļþµÄ·½·¨

GitLabÌṩÁ˶àÖÖÉÏ´«ÎļþµÄ·½·¨£¬°üÀ¨Web½çÃæÉÏ´«¡¢Git¿Í»§¶ËÉÏ´«¡¢APIÉÏ´«µÈ¡£

Web½çÃæÉÏ´«

·­¿ªGitLabËùÔÚµÄÏîÄ¿Ò³Ã棬µã»÷Ò³Ãæ×ó²àÀ¸µÄ¡°Files¡±Ñ¡ÏÔÚ¡°Files¡±Ò³Ãæ×óÉϽÇÕÒµ½¡°Upload file¡±°´Å¥£¬µã»÷¸Ã°´Å¥¼´¿ÉÉÏ´«Îļþ¡£ÉÏ´«Àֳɺó¿ÉÒÔÔÚ¡°Files¡±Ò³ÃæµÄÎļþÁбíÖп´µ½ÄãÉÏ´«µÄÎļþ¡£

Git¿Í»§¶ËÉÏ´«

ʹÓÃGit¿Í»§¶ËÉÏ´«ÎļþÐèÒªÏȽ«ÎļþÌí¼Óµ½ÍâµØ¿ÍÕ»ÖÐÔÙÍÆË͵½GitLabЧÀÍÆ÷¡£ÏêϸÁ÷³ÌÈçÏ£º

£¨1£©½øÈëÏîÄ¿ËùÔÚµÄÍâµØĿ¼¡£

£¨2£©ÔÚÖÕ¶ËÖÐÊäÈëÏÂÁî:

git add 

µÇ¼ºó¸´ÖÆ

ÌåÏÖ½«ÎļþÌí¼Óµ½ÔÝ´æÇø¡£

£¨3£©Í¨¹ýÏÂÁî

git commit -m ""

µÇ¼ºó¸´ÖÆ

À´Ìá½»¸ü¸Ä¡£

£¨4£©Ê¹ÓÃÏÂÁî

git push

µÇ¼ºó¸´ÖÆ

½«ÍâµØÎļþÉÏ´«µ½GitLabЧÀÍÆ÷¡£

APIÉÏ´«

ͨ¹ýGitLabµÄAPI¿ÉÒÔʵÏÖÎļþµÄÅúÁ¿ÉÏ´«¡£ÏêϸÁ÷³ÌÈçÏ£º

£¨1£©ÔÚGitLabÖн¨ÉèÒ»¸öPersonal Access Token£¬ÓÃÓÚAPIÈÏÖ¤¡£

£¨2£©»ñÈ¡API UploadµÄURL¡£

£¨3£©Ê¹ÓÃcurl»òÕßÆäËûÌá½»¹¤¾ßÀ´¾ÙÐÐÎļþµÄÉÏ´«¡£

¶þ¡¢ÉÏ´«ÎļþµÄÏÞÖÆ

ÔÚGitLabÉÏ´«Îļþʱ£¬ÐèҪעÖØһЩÏÞÖÆ¡£

Îļþ¾Þϸ

GitLabĬÈÏÖ§³ÖµÄ×î´óÉÏ´«Îļþ¾ÞϸΪ10MB£¬ÈôÊÇÉÏ´«µÄÎļþ¾ÞϸÁè¼ÝÁËÕâ¸öÏÞÖÆ£¬»á·ºÆðÉÏ´«Ê§°ÜµÄÇéÐΡ£ÈôÊÇÐèÒªÉÏ´«´óÎļþ£¬ÔòÐèÒª¾ÙÐÐÌØÁíÍâÉèÖá£

¿ªÆôGit Large File Storage£¨LFS£©¿ÉÒÔ½â¾öÉÏ´«´óÎļþµÄÎÊÌâ¡£Git LFSÊÇGitµÄÒ»¸öÀ©Õ¹£¬ËüʹÓÃGit LFS¹ýÂËÆ÷À´½Øסָ¶¨ÎļþµÄIO²Ù×÷£¬²¢½«ÎļþÖ¸ÏòÒ»¸öÍⲿµÄÎļþ´æ´¢¡£

ÈôÊÇÐèÒªÉÏ´«µÄÎļþºÜÊǴ󣬿ÉÒÔ˼Á¿Ê¹ÓÃÔƴ洢ЧÀÍ£¬½«ÎļþÉÏ´«µ½ÔÆ´æ´¢£¬È»ºóÔÚGitLabÖн¨ÉèÒ»¸öÁ´½Ó¼´¿É¡£

ÎļþÀàÐÍ

GitLabĬÈÏÖ§³ÖµÄÎļþÀàÐÍ°üÀ¨.txt¡¢.md¡¢.html¡¢.css¡¢.js¡¢.pdf¡¢.xlsx¡¢.docxµÈ¡£

¹ØÓÚ²»ÔÚÖ§³ÖÁбíÖеÄÎļþÀàÐÍ£¬ÐèÒªÔÚGitLabÖоÙÐÐÌØÁíÍâÉèÖá£ÔÚGitLabµÄAdminÉèÖÃÖУ¬¿ÉÒÔÉèÖÃÔÊÐíÉÏ´«µÄÎļþÀàÐÍ¡£Ò²¿ÉÒÔʹÓÃGitLab LFSÀ´Ö§³Ö·ÇÎı¾ÃûÌõÄÎļþÉÏ´«¡£

Èý¡¢×ܽá

ÔÚÏîÄ¿¿ª·¢ÖУ¬ÉÏ´«ÎļþÊDZؾ­Ö®Â·¡£GitLabÌṩÁ˶àÖÖ·½·¨À´ÊµÏÖÎļþµÄÉÏ´«¡£¿ÉÊÇÐèҪעÖØÉÏ´«ÎļþµÄ¾ÞϸºÍÀàÐÍÏÞÖÆ¡£

ÉÏ´«ÎļþÊÇGitLabµÄÖ÷Òª¹¦Ð§Ö®Ò»£¬ÕÆÎÕÕâЩÉÏ´«ÎļþµÄÒªÁìºÍÏÞÖƽ«ÓÐÖúÓÚ¿ª·¢Õ߸üºÃµØʹÓÃGitLabÀ´ÖÎÀíºÍЭ×÷ÏîÄ¿¡£

ÒÔÉϾÍÊÇgitlabÔõÑùÉÏ´«ÎļþµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ