WindowsÉÏÔõô´î½¨GitLab£¨½Ì³Ì·ÖÏí£©
gitlabÊÇÒ»¿îºÜÊÇÊ¢ÐеĴúÂëÍйÜƽ̨£¬¿ÉÒÔÀû±ãµØʵÏÖ´úÂëµÄ°æ±¾ÖÎÀí¡¢Ð×÷¿ª·¢ºÍ×Ô¶¯»¯°²Åŵȹ¦Ð§¡£´ó´ó¶¼ÈË¿ÉÄÜÒѾϰ¹ßÁËÔÚlinuxϵͳÉÏ×°ÖúÍʹÓÃgitlab£¬¿ÉÊÇÔÚwindowsϵͳÏ´gitlabÏà¶ÔÒªÄÑÌâһЩ¡£±¾ÎĽ«ÏÈÈÝÔõÑùÔÚwindowsϵͳÏ´gitlab¡£ÎªÁËÈø÷È˸üÀû±ãµØÃ÷È·Õû¸öÀú³Ì£¬ÎÒ»áÍŽáһЩʵÀý¾ÙÐнâ˵£¬Èø÷ÈËÄܹ»ÇáËɵشһ¸öÊôÓÚ×Ô¼ºµÄgitlab¡£
Ò»¡¢×°ÖÃGit
1¡¢ÏÂÔØGit×°Öðü
Ê×ÏÈ£¬ÎÒÃÇÐèÒªÏÂÔØGitµÄ×°Öðü¡£¿ÉÒÔÔÚGit¹ÙÍøhttps://git-scm.com/ÉÏÏÂÔØ×îа汾µÄGit×°Öðü¡£
2¡¢×°ÖÃGit
ÏÂÔØÍêGit×°Öðüºó£¬ÔËÐÐ×°ÖóÌÐò£¬Ò»Æð Next Ö±µ½×°ÖÃÍê³É¡£
3¡¢¼ì²éGit×°ÖÃÊÇ·ñÀÖ³É
×°ÖÃÍê³Éºó£¬°´Ï¡°win+R¡±·¿ªÔËÐд°¿Ú£¬ÊäÈëcmd·¿ªÏÂÁîÐд°¿Ú£¬ÊäÈëgit –version£¬ÈôÊÇ·ºÆðÀàËÆ¡°git version 2.24.0.windows.2¡±µÄ×ÖÑù£¬ËµÃ÷GitÒѾװÖÃÀֳɡ£
¶þ¡¢×°Öò¢ÉèÖÃRuby
ÔÚWindowsϵͳÏ´GitLabÐèҪʹÓõ½RubyµÄһЩ¹¦Ð§£¬ÒÔÊÇÎÒÃÇÐèҪװÖò¢ÉèÖúÃRubyÇéÐΡ£ÏÂÃæÊÇÏêϸµÄ×°Öð취£º
1¡¢ÏÂÔØRuby×°Öðü
ÔÚRuby¹ÙÍøhttps://rubyinstaller.org/downloads/ÉÏÏÂÔØ×îа汾µÄRuby×°Öðü¡£
2¡¢×°ÖÃRuby
ÏÂÔØÍê³Éºó£¬ÔËÐÐ×°ÖóÌÐò£¬µã»÷¡°Next¡±°´Å¥½øÈë×°ÖýçÃæ¡£
ÔÚ¡°Installation Destination and Optional Tasks¡±½çÃæÖУ¬¿ÉÒÔÑ¡ÔñRubyµÄ×°Ö÷¾¶ºÍ×°Öõĸ½¼Ó×é¼þ¡£ÕâÀïÎÒÃÇÑ¡ÔñĬÈϵÄ×°Ö÷¾¶ºÍ×°ÖÃËùÓеĸ½¼Ó×é¼þ£¬È»ºóµã»÷¡°Install¡±°´Å¥¾ÙÐÐ×°Öá£
3¡¢¼ì²éRuby×°ÖÃÊÇ·ñÀÖ³É
×°ÖÃÍê³Éºó£¬Í¬ÑùÔÚÏÂÁîÐд°¿ÚÖÐÊäÈëruby ¨Cversion£¬ÈôÊÇ·ºÆðÀàËÆ¡°ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]¡±µÄ×ÖÑù£¬ËµÃ÷RubyÒѾװÖÃÀֳɡ£
Èý¡¢×°ÖÃGitLab
1¡¢ÏÂÔØGitLab×°Öðü
ÔÚGitLab¹ÙÍøhttps://about.gitlab.com/install/ÉÏÏÂÔØ×îа汾µÄGitLab×°Öðü¡£
2¡¢ÔËÐÐGitLab×°ÖóÌÐò
×°ÖÃÍê³Éºó£¬·¿ªÏÂÁîÐд°¿Ú£¬½øÈëGitLab×°ÖðüµÄĿ¼£¬ÊäÈëÏÂÁ
gitlab-ctl.bat install
ÆÚ´ýÒ»¶Îʱ¼äºó£¬ÊäÈëÏÂÁ
gitlab-ctl.bat start
ÆÚ´ý¼¸·ÖÖÓ£¬GitLab¾Í×°ÖÃÀÖ³ÉÁË¡£´Ëʱ£¬¿ÉÒÔÔÚä¯ÀÀÆ÷ÖÐÊäÈëhttp£º//localhost£¬¼´¿É½øÈëGitLabµÄµÇ¼ҳÃæ¡£
3¡¢½¨ÉèGitLabÖÎÀíÔ±Õ˺Å
µÚÒ»´ÎµÇ¼GitLabʱ£¬ÐèÒª½¨ÉèÒ»¸öÖÎÀíÔ±Õ˺ţ¬Õâ¸öÕ˺ÅÓµÓÐGitLabµÄ×î¸ßȨÏÞ£¬¿ÉÒÔÖÎÀíËùÓÐÓû§ºÍÏîÄ¿¡£½¨ÉèÖÎÀíÔ±Õ˺ŵÄÀú³ÌºÜÊǼòÆÓ£¬Ö»ÐèÒªÌîдÏà¹ØÐÅÏ¢¼´¿É¡£
ËÄ¡¢Ê¹ÓÃGitLab
µ½ÁËÕâÒ»²½£¬ÎÒÃÇÒѾÀֳɴÁËÒ»¸öGitLab£¬¿ÉÒÔÀû±ãµÄʹÓÃGitLabÀ´ÖÎÀí´úÂëºÍÐͬ¿ª·¢¡£
1¡¢½¨ÉèÏîÄ¿
µÇ¼GitLabºó£¬Ñ¡Ôñ¡°New Project¡±°´Å¥£¬ÌîдÏîÄ¿Ãû³ÆºÍÐÎòµÈÐÅÏ¢£¬È»ºóµã»÷¡°Create Project¡±°´Å¥¼´¿É½¨ÉèÒ»¸öеÄÏîÄ¿¡£
2¡¢Ìí¼Ó³ÉÔ±
ÔÚÏîÄ¿Ò³ÃæÖУ¬Ñ¡Ôñ¡°Settings¡±²Ëµ¥£¬È»ºóµã»÷¡°Members¡±½øÈë³ÉÔ±ÖÎÀíÒ³Ãæ¡£ÔÚÕâÀ¿ÉÒÔÌí¼ÓÆäËûÖ°Ô±×÷ΪÏîÄ¿³ÉÔ±£¬·ÖÅɲî±ðµÄȨÏÞ¡£
3¡¢Ìá½»½ÓÂë
ÔÚ´úÂëÖÎÀíÒ³ÃæÖУ¬¿ÉÒÔÌá½»½ÓÂë¡¢Éó²é°æ±¾¼Í¼µÈ¡£Ìá½»½ÓÂëµÄÀú³Ì¾Í¸úÔÚÍâµØGit¿ÍÕ»ÖÐÌá½»½ÓÂëÊÇÒ»ÑùµÄ£¬Ö»Ð轫Ð޸ĵĴúÂëÍÆË͵½Ô¶³Ì¿ÍÕ»¼´¿É¡£
×ܽá
ÔÚWindowsϵͳÏ´GitLab¿ÉÄÜ»á½ÏÁ¿Öش󣬿ÉÊÇֻҪƾ֤ÉÏÊö°ì·¨ÖðÒ»²Ù×÷£¬¾ÍÄܹ»Ë³ËìµÄ´î½¨Íê±Ï¡£GitLabÊÇÒ»¸öºÜÊÇÀû±ãµÄ´úÂëÍйÜƽ̨£¬¿ÉÒÔ´ó´óÌá¸ß´úÂëµÄÖÎÀíºÍÐ×÷¿ª·¢Ð§ÂÊ¡£
ÒÔÉϾÍÊÇWindowsÉÏÔõô´î½¨GitLab£¨½Ì³Ì·ÖÏí£©µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡