ÔõÑù½«´úÂë´ÓGitHubÍÆË͵½giteeÉÏ
Ëæ×ÅgithubÔÚÈ«Çò³ÌÐòÔ±ÖеÄÆÕ¼°£¬Ô½À´Ô½¶àµÄÈË¿ÉÄÜ»áÓöµ½½«ËûÃǵĴúÂë´ÓgithubÍÆËÍ£¨push£©µ½ÆäËûÍйÜƽ̨µÄÐèÒª¡£±¾ÎĽ«ÏÈÈÝÔõÑù½«´úÂë´ÓgithubÍÆË͵½º£ÄÚµÄÒ»¸öÊ¢ÐÐÍйÜƽ̨gitee¡£
Ê×ÏÈ£¬ÐèÒª½¨ÉèÒ»¸öGiteeÕ˺Ų¢ÔÚÍâµØ×°ÖÃGitÏÂÁîÐй¤¾ß¡£½Ó×Å£¬ÎÒÃÇÐèÒª´ÓGitHubÉϽ«´úÂë¿Ë¡µ½ÍâµØ¡£¿ÉÒÔʹÓÃÈçÏÂÏÂÁ
git clone https://github.com/username/repository.git
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬”username/repository”´ú±íGitHubÉϵÄÓû§ÃûºÍ´úÂë¿ÍÕ»Ãû¡£ËäÈ»£¬Ò²¿ÉÒÔʹÓÃSSHÐÒé¾ÙÐпË¡¡£
git clone git@github.com:username/repository.git
µÇ¼ºó¸´ÖÆ
½ÓÏÂÀ´£¬ÔÚÍâµØ¿ÍÕ»ÖÐÐÂÔöÒ»¸öÃûΪGiteeµÄÔ¶³Ì¿ÍÕ»£º
git remote add gitee https://gitee.com/username/repository.git
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬”username/repository”´ú±íGiteeÉϵÄÓû§ÃûºÍ´úÂë¿ÍÕ»Ãû¡£
½Ó×Å£¬½«´úÂëÍÆË͵½GiteeÉϵÄÏÂÁîÈçÏ£º
git push gitee branchname
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬”branchname”´ú±íÒªÍÆË͵ĴúÂë·ÖÖ§Ãû¡£ÈôÊÇÐèÒªÍÆËÍËùÓзÖÖ§£¬¿ÉÒÔʹÓÃÈçÏÂÏÂÁ
git push gitee --all
µÇ¼ºó¸´ÖÆ
ÈôÊÇGitÌáÐÑÐèÒªÊäÈëÓû§ÃûºÍÃÜÂ룬ÄÇô¾Íƾָ֤ʾÊäÈë¡£ËäÈ»£¬Ò²¿ÉÒÔÉèÖÃSSH KeyÒÔ×èֹÿ´Î²Ù×÷¶¼ÐèÒªÊäÈëÃÜÂë¡£
ÕâÑù£¬´úÂë¾Í±»ÀÖ³ÉÍÆË͵½ÁËGiteeÉÏ¡£
ÖµµÃÒ»ÌáµÄÊÇ£¬ÈôÊÇÄãÊǽ«GitHubÉϵĴúÂëÍêȫǨáãµ½GiteeÉÏ£¬Ôò¿ÉÒÔ½«GitHubµÄ´úÂë¿âÌí¼ÓÒ»¸öGiteeµÄMirror£¨¾µÏñ£©¹ØÁª£¬¼´¿Éʵʱͬ²½GitHubÉϵĴúÂëµ½GiteeÉÏ¡£
ÒÔÉϾÍÊǽ«´úÂë´ÓGitHubÍÆË͵½GiteeÉϵİ취¡£Ï£Íû¶Ô¸÷ÈËÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇÔõÑù½«´úÂë´ÓGitHubÍÆË͵½giteeÉϵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡