°ì·¨Ïê½âÔõÑùʹÓÃGitLab
gitlabÊÇÒ»ÖÖ»ùÓÚwebµÄgit´úÂëÖÎÀí¹¤¾ß£¬ËüÌṩÁËÓÃÓÚÐ×÷¡¢°æ±¾¿ØÖÆ¡¢ci/cdºÍ°²ÅŵÄÍêÕû½â¾ö¼Æ»®¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ÏÈÈÝÔõÑùʹÓÃgitlab¡£
µÚÒ»²½£º×¢²áÕË»§
Ê×ÏÈ£¬ÄãÐèÒªµ½GitLabµÄ¹Ù·½ÍøÕ¾£¨https://gitlab.com/£©ÉÏ×¢²áÒ»¸öÕË»§¡£×¢²áºó£¬Ä㽫Äܹ»½¨Éè×Ô¼ºµÄ¿ÍÕ»¡¢Ìí¼ÓÍŶӳÉÔ±£¬²¢»ñµÃÒ»¸ö´æ´¢¿âURL£¬ÒÔ±ãÓë±ðÈË·ÖÏíÄãµÄ´úÂë¡£
µÚ¶þ²½£º½¨ÉèпÍÕ»
ÔÚGitLab½çÃæµÄ×óÏ·½£¬Äã¿ÉÒÔ¿´µ½¡°New Project¡±°´Å¥¡£µã»÷Ëü£¬È»ºóÌîдд洢¿âµÄÃû³Æ¡¢ÐÎòºÍ»á¼û¼¶±ð¡£Äã¿ÉÒÔÑ¡Ôñ½«ÆäÉèΪ¹«¹²»ò˽ÈË¡£
µÚÈý²½£ºÌí¼ÓÍâµØ´æ´¢¿â
ÏÖÔÚÄãÐèÒª½«ÄãÒª¸ú×ÙµÄÍâµØ´æ´¢¿âÌí¼Óµ½GitLabÖС£ÓÐÁ½ÖÖÒªÁì¿ÉÒÔʵÏÖ£º
ÒªÁìÒ»£º´ÓGitLabÖпË¡һ¸ö¼ÈÓеĿÍÕ»¾ÙÐÐÐ޸ģ¬Ö±µ½×¼±¸ºÃÌá½»Ð޸ĵ½¿ÍÕ»¡£
ÒªÁì¶þ£ºÔÚÍâµØ½¨ÉèGit´æ´¢¿â£¬²¢Í¨¹ýÏÂÁîÐй¤¾ßºÍGitÏÂÁîÐÐÏÂÁËüÓëGitLab¿ÍÕ»ÏàÅþÁ¬¡£ÕâÑùÄã¾Í¿ÉÒÔÏòGitLabÌá½»½ÓÂë²¢´ÓGitLabÎüÊÕ´úÂëÁË¡£
ÏÂÃæÊÇÔõÑùʹÓÃÒªÁì¶þ½«ÍâµØ´æ´¢¿âÌí¼Óµ½GitLabµÄ°ì·¨£º
·¿ªÖն˻òÏÂÁîÌáÐÑ·û£¨WindowsÓû§£©£¬Çл»µ½ÒÑÌí¼ÓÏîÄ¿µÄÍâµØÎļþ¼Ð¡£
·¿ªGitLabÖеĴ洢¿â£¬²¢ÔÚ´æ´¢¿âµÄ¡°Set up¡±Ñ¡ÏÖÐÕÒµ½´æ´¢¿âµÄURL¡£¸´ÖÆËü¡£
ÔÚÏÂÁîÌáÐÑ·ûÖÐÊäÈëÒÔÏÂÏÂÁîÀ´½«´æ´¢¿âÌí¼Óµ½ÍâµØ£º
$ git remote add origin git@gitlab.com:username/repository-name.git
µÇ¼ºó¸´ÖÆ
ÕâÀÌæ»»¡°username/repository-name¡±ÎªÄãÔÚGitLabÖеĴ洢¿âÃû³Æ¡£
ÑéÖ¤ÊÇ·ñÀÖ³ÉÅþÁ¬ÁËÍâµØ´æ´¢¿âºÍGitLab´æ´¢¿â£º
$ git remote -v
µÇ¼ºó¸´ÖÆ
½«ÍâµØ´úÂëÌá½»µ½GitLab£º
$ git push -u origin master
µÇ¼ºó¸´ÖÆ
µÚËIJ½£ºÊ¹ÓÃGitLab¾ÙÐÐÐ×÷
ÏÖÔÚ£¬ÄãÒѾ½«ÍâµØ´æ´¢¿âÅþÁ¬µ½ÁËGitLab´æ´¢¿â£¬¿ÉÒÔ×îÏÈʹÓÃGitLab¾ÙÐÐÐ×÷¡£ÔÚGitLab´æ´¢¿âÖУ¬Äã¿ÉÒÔ£º
·ÖÏíÄãµÄ´úÂë
ÔÚ´æ´¢¿âÉèÖÃÖУ¬Äã¿ÉÒÔ½«´æ´¢¿âÉèΪ¹ûÕæ»ò˽ÓС£Äã¿ÉÒÔÔÚ´æ´¢¿âµÄÔ˶¯Ò³ÃæÉÏÉó²éËÔÚ»á¼ûËü¡£
ºÏ²¢ÇëÇó
ʹÓÃGitLab¹¦Ð§¿ÉÒԺϲ¢ÇëÇó£¬ÔÊÐíÓû§Ìá½»¸ü¸Äµ½´æ´¢¿âµÄ·ÖÖ§£¬È»ºóÇëÇóºÏ²¢¡£
ÎĵµºÍÎÊÌâ¸ú×Ù
GitLabÌṩһ¸öwikiºÍissue¸ú×Ù¹¦Ð§£¬Õâ¿ÉÒÔ×ÊÖúÄãµÄÏîÄ¿×éÐ×÷Íê³ÉÏîÄ¿¡£
×Ô¶¯»¯°²ÅÅ
ʹÓÃGitLab£¬Äã¿ÉÒÔÉèÖÃCI/CDͨµÀÀ´×Ô¶¯»¯¼¯³É¡¢²âÊԺͰ²ÅÅÄãµÄÓ¦ÓóÌÐòºÍЧÀÍ¡£
×ܽá
ͨ¹ýGitLab£¬Äã¿ÉÒÔÇáËɵØÖÎÀíºÍÐ×÷ÏîÄ¿¡¢ÖÎÀíÖݪְ²ÅÅ£¬¿ÉÒÔÀû±ãµØÐ×÷¡¢»á¼û°æ±¾ÀúÊ·¼Í¼ºÍÐ޸ġ£×÷Ϊһ¸öÇ¿Ê¢µÄ°æ±¾¿ØÖÆϵͳ£¬ËüÊÊÓÃÓÚÈκιæÄ£µÄÏîÄ¿¡£ÎªÁËʹÄãµÄÏîÄ¿Àֳɣ¬ÄãÐèҪѧϰÔõÑùʹÓÃGitLab²¢½«ÆäÓ¦Óõ½ÄãµÄÏÖÓÐÁ÷³ÌÖС£
ÒÔÉϾÍÊÇ°ì·¨Ïê½âÔõÑùʹÓÃGitLabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡