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

¡¾ÕûÀí·ÖÏí¡¿Ò»Ð©³£ÓÃµÄ GitLab ÏÂÁî

gitlab ÏÂÁîÊÇÔÚ git ÖÐʹÓõÄ £¬ËüÊÇÒ»¸ö»ùÓÚ git ´úÂëÖÎÀíϵͳµÄ web Ó¦ÓóÌÐò £¬ÌṩԴ´úÂëÖÎÀí¡¢ÏîĿЭ×÷¡¢Ò»Á¬¼¯³ÉºÍ°²Åŵȹ¦Ð§¡£ËüÊÇÒ»¸ö¹¦Ð§Ç¿Ê¢µÄ¹¤¾ß £¬¿ÉÒÔÓÃÀ´ÖÎÀí´óÐÍÍŶӵĴúÂë¿â¡£

GitLab µÄʹÓÃÒªÁìºÜ¼òÆÓ £¬¿ÉÒÔͨ¹ý Git ÏÂÁîÐлòÕß GitLab µÄͼÐλ¯½çÃæÀ´¾ÙÐвÙ×÷¡£ÒÔÏÂÊÇһЩ³£ÓÃµÄ GitLab ÏÂÁî:

git clone git@gitlab.com:your_username/your_project.git

Õâ¸öÏÂÁîÓÃÓÚ½«Ò»¸ö GitLab ÉϵÄÏîÄ¿¸´ÖƵ½ÍâµØÅÌËã»úÉÏ¡£ÆäÖÐ git@gitlab.com:your_username/your_project.git ÊÇÄãÏîÄ¿µÄµØµã¡£

git add .

Õâ¸öÏÂÁîÓÃÓÚ½«ÍâµØÐ޸ĵĴúÂëÌí¼Óµ½ GitLab µÄ°æ±¾¿âÖС£”.” µÄÒâ˼Êǽ«Ä¿½ñĿ¼ÏÂËùÓÐÐ޸ĵÄÎļþ¶¼Ìí¼Óµ½°æ±¾¿âÖС£

git commit -m “commit message”

Õâ¸öÏÂÁîÓÃÓÚ½«Ìí¼Óµ½ GitLab °æ±¾¿âÖеĴúÂëÌá½» £¬²¢ÇÒÌí¼Ó commit message ˵Ã÷±¾´ÎÌá½»×öÁËʲôÐ޸ġ£

git push origin master

Õâ¸öÏÂÁîÓÃÓÚ½«ÍâµØ´úÂë¿âÖеÄÐÞ¸Äͬ²½µ½ GitLab µÄЧÀÍÆ÷ÉÏ £¬ÆäÖÐ origin ÊÇÔ¶³Ì¿ÍÕ»µÄÃû³Æ £¬master ÊÇĬÈϵÄÖ÷·ÖÖ§¡£

git pull origin master

Õâ¸öÏÂÁîÓÃÓÚ½« GitLab ¿ÍÕ»ÖеĴúÂë¸üе½ÍâµØÅÌËã»úÉÏ £¬Í¬ÑùµÄ £¬ÆäÖÐ origin ÊÇÔ¶³Ì¿ÍÕ»µÄÃû³Æ £¬master ÊÇĬÈϵÄÖ÷·ÖÖ§¡£

git checkout -b new_branch_name

Õâ¸öÏÂÁîÓÃÓÚÔÚ GitLab ¿ÍÕ»Öн¨ÉèÒ»¸öеķÖÖ§²¢ÇÒÇл»µ½Õâ¸ö·ÖÖ§ÉÏ¡£new_branch_name ÊÇзÖÖ§µÄÃû³Æ¡£

git merge branch_name

Õâ¸öÏÂÁîÓÃÓÚ½«Ò»¸ö·ÖÖ§µÄÐ޸ĺϲ¢µ½Ä¿½ñ·ÖÖ§ÖС£branch_name ÊÇÒªºÏ²¢µÄ·ÖÖ§Ãû³Æ¡£

git reset –hard HEAD

Õâ¸öÏÂÁîÓÃÓڻعö±¾´ÎÌá½» £¬½«±¾´ÎÌá½»Ð޸ĵĴúÂ붼×÷·Ï¡£Õâ¸öÏÂÁîÐèÒªÉ÷Óà £¬ÓÉÓÚËü»áÍêȫɾ³ýÉÏ´ÎÌá½»µÄÐ޸ġ£

ÕâЩÊdz£ÓÃµÄ GitLab ÏÂÁî £¬¿ÉÒÔ×ÊÖú¿ª·¢Õ߸üºÃµØÖÎÀí´úÂë¿â¡£GitLab µÄʹÓÃÒªÁì½ÏÁ¿ÀàËÆÓÚ Github ºÍ Bitbucket £¬µ«ËüÌṩÁ˸üÇ¿Ê¢µÄ´úÂëÖÎÀíºÍÍŶÓЭ×÷¹¦Ð§ £¬ÊÇÒ»¸öºÜÊÇÓÅÒìµÄ´úÂëÖÎÀí¹¤¾ß¡£

ÒÔÉϾÍÊÇ¡¾ÕûÀí·ÖÏí¡¿Ò»Ð©³£ÓÃµÄ GitLab ÏÂÁîµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

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

Ïà¹ØÐÂÎÅ

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

18523999891

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

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

QR code
ÍøÕ¾µØͼ