ÏêϸÏÈÈÝ GitLab ÔõÑùʹÓÃ
СÐò
GitLab ÊÇÒ»¿îÃæÏòÍŶӵÄÔ´´úÂëÖÎÀí¹¤¾ß£¬ËüÌṩÁËһϵÁеĿª·¢¹¤¾ßºÍÒ»Á¬¼¯ÀÖ³ÉÄÜ¡£ÈôÊÇÄú»¹Î´Ñ§Ï° GitLab£¬±¾ÎĽ«ÎªÄúÌṩÏêϸµÄ GitLab ÔõÑùʹÓý̡̳£
×°ÖÃ GitLab
GitLab ¿ÉÒÔÔÚ Windows¡¢Linux ºÍ Mac ÉÏÔËÐУ¬Äú¿ÉÒÔÑ¡ÔñÖ±½ÓÔÚÆä¹ÙÍøÏÂÔØ GitLab ×°ÖóÌÐò²¢¾ÙÐÐ×°Öá£ÈôÊÇÄúÕýÔÚʹÓà Linux ϵͳ£¬Ôò¿ÉÒÔͨ¹ý package manager ×°Öà GitLab¡£ÀýÈ磬ÔÚ Ubuntu ÉÏ£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî×°Öà GitLab£º
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash sudo apt-get install gitlab-ce
µÇ¼ºó¸´ÖÆ
×°ÖÃÍê³Éºó£¬Äú¿ÉÒÔͨ¹ýÔÚä¯ÀÀÆ÷ÖÐÊäÈë http:// À´»á¼û GitLab¡£
½¨ÉèÏîÄ¿
ÔÚ GitLab Öн¨ÉèÏîÄ¿ºÜÊǼòÆÓ¡£ÄúÖ»Ðèµã»÷ New project °´Å¥²¢ÌîдÏîÄ¿µÄÃû³Æ¡¢ÐÎòºÍ»á¼û¼¶±ð¼´¿É½¨ÉèÒ»¸öÐÂÏîÄ¿¡£
Ìí¼ÓÓû§
ÔÚ GitLab ÖУ¬ÍŶӳÉÔ±ÐèÒª±»Ìí¼Óµ½ÄúµÄÏîÄ¿ÖвŻª»á¼ûËü¡£µ¥»÷ÏîÄ¿Ö÷Ò³É쵀 Settings °´Å¥£¬È»ºóÑ¡Ôñ Members Ñ¡Ï¡£ÔÚÄÇÀÄú¿ÉÒÔÌí¼ÓÓû§²¢ÎªËûÃÇÉèÖûá¼û¼¶±ð¡£
½¨Éè·ÖÖ§
ÔÚ GitLab ÈκβÙ×÷֮ǰ£¬¶¼ÐèÒªÏȽ¨ÉèÒ»¸ö·ÖÖ§¡£Ä¬ÈÏÇéÐÎÏ£¬ËùÓÐÏîÄ¿¶¼ÓÐÒ»¸ö master ·ÖÖ§£¬µ«Äú¿ÉÒÔ½¨Éèí§ÒâÊýÄ¿µÄ·ÖÖ§¡£
Òª½¨ÉèÒ»¸öзÖÖ§£¬Çëµ¥»÷ÏîÄ¿Ö÷Ò³É쵀 Branches °´Å¥¡£´ÓÄÇÀÄú¿ÉÒÔÊäÈëзÖÖ§µÄÃû³Æ²¢Ñ¡Ôñ»ùÓÚÄĸö·ÖÖ§½¨Éè¡£
Ìá½»½ÓÂë
ÔÚ GitLab ÖУ¬Ê¹Óà git add ºÍ git commit ÏÂÁîÌá½»½ÓÂë¡£Äú¿ÉÒÔʹÓà GitLab µÄ Web ½çÃæ»òÏÂÁîÐС£
ÔÚ Web ½çÃæÖУ¬Äú¿ÉÒÔͨ¹ý½«ÎļþÍϵ½ÏîÄ¿Ò³ÃæÉÏ»òʹÓà Upload file °´Å¥À´ÉÏ´«Îļþ¡£ÍêÕûµÄ´úÂë¿â¿ÉÒÔʹÓà git clone ÏÂÁîÖ±½ÓÏÂÔص½ÍâµØÎļþ¼ÐÖС£
¾ÙÐÐ Merge Request
ÔÚ GitLab ÖУ¬Merge Request ÊÇÒ»¸öÖ÷ÒªµÄ¿´·¨¡£Äú¿ÉÒÔͨ¹ý Merge Request ½«ÄúµÄ´úÂë·ÖÖ§ºÏ²¢µ½Ö÷·ÖÖ§ÖС£
Òª¾ÙÐÐ Merge Request£¬Çë´ÓÄú½¨Éè·ÖÖ§µÄÒ³ÃæÖÐÑ¡Ôñ Create a Merge Request °´Å¥¡£ÔÚÄÇÀÄú¿ÉÒÔÖ¸¶¨ÄÄЩ´úÂë¸ü¸ÄÓ¦ºÏ²¢¡£ÆäËûÍŶӳÉÔ±¿ÉÒÔÔÚ Merge Request Ò³ÃæÖжÔÌá½»µÄ´úÂë¾ÙÐÐÆÀÉó²¢Ìṩ·´Ïì¡£Ò»µ© Merge Request ±»Åú×¼£¬ÄúµÄ´úÂë¾Í¿ÉÒԺϲ¢µ½Ö÷·ÖÖ§ÖС£
½áÂÛ
Ï£Íû±¾ÎĶÔÄúÓÐËù×ÊÖú£¬ËüÌṩÁËʹÓà GitLab µÄ»ù±¾½Ì³Ì¡£GitLab ¾ßÓÐÐí¶àÆäËû¹¦Ð§ºÍ¹¤¾ß£¬½¨ÒéÄúÖð²½Ñ§Ï°²¢ÕÆÎÕÕâЩ¹¦Ð§£¬ÒÔ³ä·ÖʹÓà GitLab µÄDZÁ¦¡£
ÒÔÉϾÍÊÇÏêϸÏÈÈÝ GitLab ÔõÑùʹÓõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡