ÔõÑùʹÓÃgiteeÔ´´úÂë
giteeÊÇÒ»¸öº£ÄÚ¿ªÔ´ÏîÄ¿ÖÎÀíƽ̨£¬Ö§³Ögit´úÂëÍйܣ¬ÍŶÓÐ×÷£¬´úÂëÉó²éµÈ¹¦Ð§¡£±¾ÎĽ«ÏÈÈÝÔõÑùʹÓÃgiteeÔ´´úÂë¡£
×¢²áGiteeÕË»§
Ê×ÏÈ£¬ÄãÐèÒªÔÚGiteeÉÏ×¢²áÒ»¸öÕË»§¡£·¿ªGitee¹ÙÍø£¨https://gitee.com/£©£¬µã»÷ÓÒÉϽǵġ°×¢²á¡±°´Å¥£¬È»ºóƾָ֤ʾÌîдע²áÐÅÏ¢£¬°üÀ¨Óû§Ãû¡¢ÓÊÏä¡¢ÃÜÂëµÈ¡£
½¨Éè¿ÍÕ»
ÔÚGiteeÉϽ¨Éè¿ÍÕ»ºÜÊǼòÆÓ¡£ÔڵǼºó£¬µã»÷Ò³ÃæÓÒÉϽǵġ°Ð½¨¿ÍÕ»¡±°´Å¥£¬Ìîд¿ÍÕ»Ãû³Æ¡¢ÐÎò¡¢Ñ¡Ôñ¹ûÕæ»òÕß˽ÓеÈÑ¡Ïî¼´¿É¡£
ÔÚÍâµØ½¨ÉèÏîÄ¿Îļþ¼Ð
ÒªÔÚGiteeÉÏÍйܴúÂ룬Ê×ÏȽ¨ÉèÒ»¸öÍâµØÏîÄ¿Îļþ¼Ð£¬°Ñ´úÂëÎļþ·ÅÈëÆäÖС£¿ÉÒÔʹÓÃÏÂÁîÐлòÕßͼÐνçÃæÀ´½¨ÉèÏîÄ¿Îļþ¼Ð¡£ÕâÀïÒÔÏÂÁîÐÐΪÀý£¬·¿ªÖն˴°¿Ú£¬ÊäÈëÒÔÏÂÏÂÁ
mkdir myproject
µÇ¼ºó¸´ÖÆ
ÕâÑù¾Í½¨ÉèÁËÒ»¸ö½Ð×ö¡°myproject¡±µÄÏîÄ¿Îļþ¼Ð¡£
³õʼ»¯git repository
½ÓÏÂÀ´£¬ÔÚmyprojectÏîÄ¿Îļþ¼Ðϳõʼ»¯git repository£¬Ê¹ÓÃÒÔÏÂÏÂÁ
cd myproject git init
µÇ¼ºó¸´ÖÆ
ÕâÑù¾ÍÔÚmyprojectÎļþ¼Ðϳõʼ»¯ÁËÒ»¸öGit repository¡£
Ìí¼ÓÎļþ
½«´úÂëÎļþÌí¼Óµ½myprojectÏîÄ¿Îļþ¼ÐÖУ¬Ê¹ÓÃÒÔÏÂÏÂÁîÀ´Ìí¼ÓÎļþ£º
git add filename
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬filenameΪÄãÒªÌí¼ÓµÄÎļþÃû¡£
Ìá½»½ÓÂë
ÔÚÌí¼ÓÁËÎļþÖ®ºó£¬ÐèÒª½«´úÂëÌá½»µ½Git repositoryÖС£Ê¹ÓÃÒÔÏÂÏÂÁîÀ´Ìá½»½ÓÂ룺
git commit -m 'commit message'
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬commit messageÊÇÄã¶ÔÕâ´ÎÌá½»µÄÐÎò£¬¿ÉÒÔÊÇí§ÒâÐÎòÄÚÈÝ¡£
½«ÍâµØ¿ÍÕ»ÓëÔ¶³Ì¿ÍÕ»¹ØÁª
ÐèÒª½«ÍâµØ¿ÍÕ»ÓëGiteeÉϽ¨ÉèµÄ¿ÍÕ»¾ÙÐйØÁª£¬ÒԱ㽫´úÂëÉÏ´«µ½GiteeÉÏ¡£Ê¹ÓÃÒÔÏÂÏÂÁîÔÚÍâµØ¿ÍÕ»ÖйØÁªÔ¶³Ì¿ÍÕ»£º
git remote add origin git@gitee.com:username/repository.git
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬usernameÊÇÄãÔÚGiteeÉϵÄÓû§Ãû£¬repositoryÊÇÄãÔÚGiteeÉϽ¨ÉèµÄ¿ÍÕ»Ãû¡£
ÍÆËÍ´úÂë
¹ØÁªºÃÔ¶³Ì¿ÍÕ»Ö®ºó£¬¾Í¿ÉÒÔ½«´úÂëÍÆË͵½GiteeÉÏÁË¡£Ê¹ÓÃÒÔÏÂÏÂÁ´úÂëÍÆË͵½Ô¶³ÌGitee¿ÍÕ»£º
git push -u origin master
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬-uÌåÏÖÉèÖÃÕâ´ÎÌύΪĬÈÏÌá½»£¬originÌåÏÖGiteeÉϵÄÔ¶³Ì¿ÍÕ»£¬masterÌåÏÖÍâµØµÄ·ÖÖ§Ãû¡£
ÒÔÉϾÍÊÇÔÚGiteeÉÏʹÓÃÔ´´úÂëµÄÁ÷³Ì¡£Í¨¹ýÒÔÉÏÒªÁ죬Äã¿ÉÒÔÇáËɵØÔÚGiteeÉÏÍйÜÄãµÄÔ´´úÂ룬²¢¾ÙÐа汾ÖÎÀíºÍÍŶÓÐ×÷¡£
ÒÔÉϾÍÊÇÔõÑùʹÓÃgiteeÔ´´úÂëµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡