ÔõÑùÔÚ Windows ÉÏ×°ÖúÍÉèÖà Gitlab
ÔÚÏîÄ¿¿ª·¢ÖУ¬°æ±¾¿ØÖÆÊǺÜÊÇÖ÷ÒªµÄÒ»»·¡£ÎªÁËÀû±ãÍŶÓÐ×÷ºÍ´úÂëÎȹÌÐÔ£¬ÎÒÃÇÐèҪʹÓÃÒ»¿îºÃµÄ°æ±¾¿ØÖƹ¤¾ß¡£git ÊÇÆäÖÐÒ»¿î±»ÆÕ±éʹÓò¢±¸ÊÜÍÆÐíµÄ°æ±¾¿ØÖƹ¤¾ß£¬¶ø gitlab ÔòÊÇ»ùÓÚ git µÄÒ»¸ö´úÂëÍйÜƽ̨£¬¿ÉÒÔÓÃÀ´Àû±ãµØÖÎÀí×Ô¼ºµÄ´úÂë¿âºÍÍŶÓÐ×÷¡£ÏÂÃæÎÒÃǾÍÀ´ÏÈÈÝÔõÑùÔÚ windows ÉÏ×°ÖúÍÉèÖà gitlab¡£
×°ÖÃ Git
Ê×ÏÈ£¬ÎÒÃÇÐèÒªÔÚ Windows ÉÏ×°Öà Git¡£È¥¹Ù·½ÍøÕ¾ÏÂÔØ×îÐ嵀 Git£¬È»ºó¾ÙÐÐ×°Öá£×°ÖÃÍê³Éºó£¬ÎÒÃÇÐèÒªÉèÖà Git µÄһЩ»ù±¾ÐÅÏ¢£¬ºÃ±ÈÓû§ÃûºÍÓÊÏ䣬Õâ¹ØÓÚÌá½»½ÓÂëʱ¼Í¼Т˳ÊǺÜÊÇÓÐÓõġ£
×°ÖÃÍê³Éºó£¬·¿ªÏÂÁîÐд°¿Ú£¬ÊäÈëÒÔÏÂÏÂÁîÉèÖÃÓû§ÃûºÍÓÊÏ䣺
$ git config --global user.name "Your Name" $ git config --global user.email "your_email@example.com"
µÇ¼ºó¸´ÖÆ
×°ÖÃ Gitlab
½ÓÏÂÀ´£¬ÎÒÃÇÐèÒªÏÂÔØ Gitlab µÄ×°Öðü¡£µ½ Gitlab µÄ¹ÙÍøÉÏÏÂÔØ×îÐ嵀 Gitlab ×°Öðü£¬²¢Æ¾Ö¤ÌáÐѾÙÐÐ×°Öá£ÔÚ×°ÖÃÀú³ÌÖУ¬ÎÒÃÇ¿ÉÒÔÉèÖà Gitlab µÄ×°Ö÷¾¶¡¢»á¼û¶Ë¿ÚµÈµÈ¡£
×°ÖÃÍê³Éºó£¬ÎÒÃÇÐèÒªÔËÐÐ Gitlab ²¢¾ÙÐÐһЩ»ù±¾µÄÉèÖá£Ê×ÏÈ£¬·¿ªä¯ÀÀÆ÷£¬ÔڵصãÀ¸ÖÐÊäÈë localhost:¶Ë¿ÚºÅ£¬¾Í¿ÉÒÔ·¿ª Gitlab µÄµÇ¼½çÃæÁË¡£Ä¬ÈÏÇéÐÎÏ£¬Gitlab µÄÖÎÀíÔ±Óû§ÃûÊÇ root£¬ÃÜÂëÔòÊÇ 5iveL!fe¡£
Gitlab »ù´¡ÉèÖÃ
ÀֳɵǼºó£¬ÎÒÃÇÐèÒª¾ÙÐÐһЩ»ù´¡ÉèÖá£Ê×ÏÈ£¬ÎÒÃÇÐèÒª½¨ÉèÒ»¸öеÄÓû§£¬²¢½«ÆäÉèÖÃΪÖÎÀíÔ±¡£ÔÚ Gitlab µÄ½çÃæÖУ¬µã»÷ÓÒÉϽǵÄÍ·Ïñ£¬Ñ¡Ôñ User²¢Ìí¼ÓÒ»¸öеÄÓû§¡£È»ºó·µ»ØÖÎÀíÔ±½çÃ棬µã»÷ Admin Area -> Users£¬½«ÐÂÓû§ÉèÖÃΪÖÎÀíÔ±¡£
½Ó×Å£¬ÎÒÃÇÐèÒª½¨ÉèÒ»¸öеÄÏîÄ¿¡£ÔÚ Gitlab µÄ½çÃæÖУ¬µã»÷ New Project °´Å¥£¬È»ºóÌîдÏîÄ¿µÄһЩ»ù±¾ÐÅÏ¢£¬ºÃ±ÈÏîÄ¿Ãû³ÆºÍÐÎòµÈµÈ¡£È»ºó£¬ÎÒÃÇÐèÒª½«ÍâµØµÄ´úÂë¿âÉÏ´«µ½ Gitlab ÉÏ£¬Ö»ÐèÒªÔÚÍâµØµÄÏÂÁî´°¿ÚÖÐÊäÈëÒÔÏÂÏÂÁ
$ git remote add origin https://gitlab.example.com/yourname/yourproject.git $ git push -u origin master
µÇ¼ºó¸´ÖÆ
ÕâÑù£¬ÎÒÃǾͽ«ÍâµØµÄ´úÂë¿âÍÆË͵½ÁË Gitlab ÉÏ¡£ÎÒÃÇ¿ÉÒÔÔÚ Gitlab µÄ½çÃæÖп´µ½×ðÁú¿Ê±ÏîÄ¿£¬²¢¾ÙÐа汾¿ØÖÆ¡¢ÍŶÓÐ×÷µÈµÈ¡£
ʹÓà Gitlab
³ýÁË»ù´¡µÄÉèÖÃÖ®Í⣬Gitlab ¾ßÓÐÐí¶àÇ¿Ê¢µÄ¹¦Ð§£¬ºÃ±È:
ÏîÄ¿ÖÎÀí
°æ±¾¿ØÖÆ
ÍŶÓÐ×÷
ȱÏݸú×Ù
Wiki µÈµÈ
×ܵÄÀ´Ëµ£¬Gitlab ÊÇÒ»¸öÊ®·ÖÇ¿Ê¢µÄ°æ±¾¿ØÖƺʹúÂëÍйÜƽ̨¡£Í¨¹ýÒÔÉÏ»ù´¡ÉèÖã¬ÎÒÃÇÒѾÍê³ÉÁË Gitlab µÄ×°ÖúÍʹÓ㬿ÉÒÔÈÃÎÒÃÇÔ½·¢¸ßЧµØ¾ÙÐÐÍŶÓÐ×÷ºÍ°æ±¾¿ØÖÆ¡£
ÒÔÉϾÍÊÇÔõÑùÔÚ Windows ÉÏ×°ÖúÍÉèÖà GitlabµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡