ÏêϸÏÈÈÝGiteeÂëÔƵÄŲÓ÷½·¨
giteeÊÇÒ»¸ö»ùÓÚgitµÄ´úÂëÍйÜƽ̨£¬Ìṩ´úÂëÍйܡ¢Ð×÷¡¢±àÒë¡¢°²ÅŵÈЧÀÍ£¬ÒÔ¼°ÍêÕûµÄÈí¼þÉúÃüÖÜÆÚ½â¾ö¼Æ»®¡£giteeÂëÔÆÊÇÆ亣ÄÚ°æ±¾£¬ÓµÓиüºÃµÄ»á¼ûËÙÂʺ͸üºÃµÄÓû§ÌåÑé¡£ÔÚ¿ª·¢Àú³ÌÖУ¬ÔõÑùÔÚÏîÄ¿ÖÐŲÓÃgiteeÂëÔƵĴúÂë³ÉΪÁËÒ»¸öºÜÖ÷ÒªµÄÎÊÌ⣬ÏÂÃ潫»áÏêϸÏÈÈÝgiteeÂëÔƵÄŲÓ÷½·¨¡£
Ò»¡¢½¨Éè¿ÍÕ»ºÍÉÏ´«´úÂë
Ê×ÏÈ£¬ÐèÒªÔÚGiteeÂëÔÆÉϽ¨Éè×Ô¼ºµÄ¿ÍÕ»¡£ÔÚ¿ÍÕ»ÖÐÉÏ´«´úÂëÎļþ£¬»òÕß½«ÒÑÓеÄÍâµØÏîÄ¿Óë¿ÍÕ»¾ÙÐÐͬ²½¡£ÔÚ¿ÍÕ»ÖÐÉèÖú÷ÖÖ§±£»¤£¬È·±£´úÂëµÄÇå¾²¡£
¶þ¡¢»ñÈ¡token
ΪÁËŲÓÃÂëÔÆÖеĴúÂ룬ÐèÒªÔÚÂëÔÆÉÏ»ñÈ¡Ò»¸ötoken¡£ÔÚGiteeµÄСÎÒ˽ÈËÖ÷Ò³ÖУ¬µã»÷×ó²àÀ¸µÄ¡°ÉèÖá±£¬Ö®ºóµã»÷¡°¿ª·¢ÕßÉèÖá±£¬È»ºóÔÚ×ó²àÀ¸Öеã»÷¡°»á¼ûÁîÅÆ¡±¡£
µã»÷¡°ÌìÉúÐÂtoken¡±£¬ÊäÈëtokenµÄÃû³Æ£¬Ñ¡ÔñÐèҪʹÓõÄȨÏÞ£¬µã»÷ÌìÉú¼´¿É»ñµÃÒ»¸öеÄtoken¡£
Èý¡¢Å²Ó÷½·¨
git clone
ʹÓá°git clone¡±ÏÂÁî¿ÉÒÔ½«¿ÍÕ»ÖеĴúÂ븴ÖƵ½ÍâµØ¡£ÔÚGiteeÂëÔÆÖУ¬Ã¿¸ö¿ÍÕ»¶¼ÓÐÒ»¸öClone URL£¬Õâ¸öURL¾ÍÊÇÓÃÀ´¾ÙÐпÍÕ»µÄ¿Ë¡²Ù×÷¡£
¼ÙÉèÄãÐèÒª½«¿ÍÕ»ÖеĴúÂë¿Ë¡µ½ÍâµØ£¬Ôò¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁî¾ÙÐвÙ×÷£º
git clone https://gitee.com/username/project.git
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬usernameºÍprojectÐèÒªÐ޸ijÉ×Ô¼ºµÄÓû§ÃûºÍ¿ÍÕ»Ãû³Æ¡£
git pull
ʹÓá°git pull¡±ÏÂÁî¿ÉÒÔ½«Ô¶³Ì¿ÍÕ»ÖеÄ×îдúÂëͬ²½µ½ÍâµØ¡£Í¬ÑùµØ£¬ÔÚGiteeÂëÔÆÖУ¬Ã¿¸ö¿ÍÕ»¶¼ÓÐÒ»¸öPull URL£¬Õâ¸öURL¾ÍÊÇÓÃÀ´¾ÙÐпÍÕ»µÄ¸üвÙ×÷¡£
¼ÙÉèÄãÐèÒª½«¿ÍÕ»ÖеÄ×îдúÂë¸üе½ÍâµØ£¬Ôò¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁî¾ÙÐвÙ×÷£º
git pull https://gitee.com/username/project.git
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬usernameºÍprojectÐèÒªÐ޸ijÉ×Ô¼ºµÄÓû§ÃûºÍ¿ÍÕ»Ãû³Æ¡£
APIŲÓÃ
³ýÁËʹÓÃÏÂÁîÐÐŲÓã¬GiteeÂëÔÆÒ²ÌṩÁËAPI½Ó¿ÚÒÔ¹©Ê¹Óá£ÓÐÁËAPI£¬¿ª·¢Õ߾ͿÉÒÔͨ¹ý³ÌÐò»¯µÄ·½·¨À´Å²ÓÃGiteeÂëÔÆÖеĴúÂë¡£
APIŲÓ÷½·¨Ò»Ñùƽ³£·ÖΪÁ½ÖÖ£¬Ò»ÖÖÊÇOAuth2ÈÏÖ¤·½·¨£¬ÁíÒ»ÖÖÊÇTokenÈÏÖ¤·½·¨¡£ÏêϸʹÓÃÒªÁì¿ÉÒԲο¼GiteeµÄAPIÎĵµ¡£
½áÓï
ÒÔÉÏÊÇGiteeÂëÔƵÄŲÓ÷½·¨£¬¿ª·¢Õß¿ÉÒÔƾ֤ÐèÇóÑ¡ÔñÏìÓ¦µÄŲÓÃÒªÁ죬ÒÔ±ã¸üºÃµØÖÎÀíºÍÐ×÷´úÂ롣ͬʱ£¬ÐèҪעÖØÇå¾²ÎÊÌ⣬°ü¹Ü´úÂëµÄÒþ˽ºÍÊý¾ÝµÄÇå¾²¡£
ÒÔÉϾÍÊÇÏêϸÏÈÈÝGiteeÂëÔƵÄŲÓ÷½·¨µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡