ÔõÑùÔÚÆ»¹ûϵͳÉÏʹÓÃGitee
Ëæ×Å´ó¹æÄ£¿ª·¢ÊÖÒÕµÄÒ»Ö±Éú³¤£¬³ÌÐòÔ±ÔÚ¿ª·¢Àú³ÌÖо³£ÐèҪʹÓôúÂëÍйÜƽ̨£¬git¾ÍÊÇ×îÊܽӴýµÄ°æ±¾ÖÎÀíϵͳ֮һ¡£Ðí¶à¿ª·¢Õßϲî³ØÚgithubÉÏÍйÜËûÃǵĴúÂ룬¿ÉÊÇÓÉÓÚijЩԵ¹ÊÔÓÉ£¬ÓÐһЩÓû§¿ÉÄܲ»ÏëʹÓÃgithubÕâ¸öÃÀ¹úµÄÍøÕ¾¡£Îª´Ë£¬ÔÚº£ÄÚ£¬ÓÐÒ»¸öºÜÊÇÊܽӴýµÄ´úÂëÍйÜƽ̨£¬ÄǾÍÊÇgitee¡£ÔÚÕâƪÎÄÕÂÖУ¬ÎÒÃǽ«ÏÈÈÝÔõÑùÔÚÆ»¹ûϵͳÉÏʹÓÃgitee¡£
Ò»¡¢×¢²á²¢µÇ¼Gitee
Ê×ÏÈ£¬ÄãÐèÒªÔÚGiteeƽ̨ÉÏ×¢²áÒ»¸öÕ˺š£ÈôÊÇÄãÒѾÓÐÁËGiteeÕË»§£¬¿ÉÒÔÖ±½ÓµÇ¼¡£µÇ¼֮ºó£¬Ñ¡ÔñÐèÒª°²ÅÅ´úÂëµÄ¿ÍÕ»£¬²¢Ð½¨Ò»¸ö¿ÍÕ»¡£
¶þ¡¢ÔÚÖÕ¶ËÖÐ×°ÖÃGit
Æ»¹ûϵͳ×Ô´øGit£¬ÈôÊÇÄãµÄϵͳÉÏûÓÐGitÏÂÁÄÇô¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÔÚÖÕ¶ËÖÐ×°Öãº
$ xcode-select --install
µÇ¼ºó¸´ÖÆ
Èý¡¢½¨ÉèSSHÃÜÔ¿
ΪÁËÔÚGiteeÉÏÇå¾²µØsshµÇ¼£¬ÐèÒªÔÚÖÕ¶ËÖÐÌìÉúÒ»¸öSSHÃÜÔ¿¡£ÔÚÖÕ¶ËÖÐÖ´ÐÐÒÔÏÂÏÂÁ
$ ssh-keygen -t rsa -C "your_email@example.com"
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬”your_email@example.com”Ì滻ΪÄãµÄÓÊÏäµØµã¡£Ö´ÐÐÍê¸ÃÏÂÁîºó£¬»áĬÈÏÉúÑÄÔÚ/Users/Óû§Ãû/.ssh/Ŀ¼Ï£¬id_rsaΪ˽ԿÎļþ£¬id_rsa.pubΪ¹«Ô¿Îļþ¡£
ËÄ¡¢½«SSHÃÜÔ¿Ìí¼Óµ½Gitee
µÇ¼Giteeºó£¬ÔÚÓÒÉϽÇÕÒµ½¡°Í·Ïñ¡±Ïµġ°ÉèÖá±ÖУ¬È»ºóÕÒµ½¡°SSH¹«Ô¿¡±²¢Ìí¼Ó£¬½«ÉÏÒ»²½ÌìÉúµÄ¹«Ô¿Îļþ¿½±´ÖÁ¸Ã´¦£¬ÉúÑļ´¿É¡£
Îå¡¢¿Ë¡´úÂëµ½ÍâµØ
ÔÚGiteeƽ̨ÉÏÑ¡ÕªÒª¿Ë¡µÄ¿ÍÕ»£¬²¢¸´ÖÆËüµÄSSHÔ¶³ÌµØµã¡£ÔÚÖÕ¶ËÖÐʹÓÃcdÏÂÁî½øÈëµ½ÄãÏ£Íû´æ·Å´úÂëµÄÍâµØĿ¼ÖУ¬È»ºó¸´ÖÆÏÂÃæµÄÏÂÁî²¢Ö´ÐУº
$ git clone git@gitee.com:username/repositoryName.git
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬Óû§ÃûºÍ¿ÍÕ»ÃûÐè×ÔÐÐÌæ»»¡£Ö´ÐиÃÏÂÁîºó£¬´úÂ뽫±»¿Ë¡µ½Ä¿½ñĿ¼Ï¡£
Áù¡¢¸ü¸ÄÎļþ
ʹÓÃÄã×îϲ»¶µÄÎı¾±à¼Æ÷À´·¿ªÄã¿Ë¡ÏÂÀ´µÄ´úÂ룬²¢¾ÙÐÐÄãÏëÒªµÄ±à¼¡£Ò»µ©Äã¶Ô´úÂë¾ÙÐÐÁËÐ޸IJ¢ÉúÑÄ£¬Äã¾ÍÐèҪʹÓÃGitÌá½»ËüÃÇ¡£
Æß¡¢Ìá½»¸ü¸Ä
ÈÔÈ»ÔÚÖÕ¶ËÖУ¬½øÈëµ½´úÂëĿ¼£¬Ê¹ÓÃÒÔÏÂÏÂÁ¸ü¸ÄÌá½»µ½¿ÍÕ»£º
$ git add . $ git commit -m "your message" $ git push origin master
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬git addÏÂÁĿ½ñĿ¼ÏµÄËùÓÐÎļþÌí¼Óµ½ÍâµØ»º´æ£¬git commitÏÂÁ»º´æÖеĸü¸ÄÌá½»µ½ÍâµØ¿ÍÕ»£¬²¢Îª¸ÃÌá½»Ìí¼ÓÐÎòÐÔÐÂÎÅ£¬git pushÏÂÁÍâµØ¿ÍÕ»µÄ¸ü¸ÄÍÆË͵½GiteeÉÏ¡£
×ܽá
ͨ¹ýÒÔÉÏÆ߸ö°ì·¨£¬ÄãÒѾÕÆÎÕÔÚÆ»¹ûϵͳÉÏʹÓÃGiteeµÄ»ù±¾ÒªÁì¡£ËäÈ»£¬Giteeƽ̨³ýÁË»ù±¾µÄGitÏÂÁîÍ⣬»¹ÌṩÁËÐí¶àÆäËû¹¦Ð§£¬×ÊÖúÄã¸üºÃµØÖÎÀí´úÂë¡£ÈôÊÇÄãÊÇÔÚGiteeÉϵÄÐÂÊÖ£¬¿ÉÒÔͨ¹ýËüµÄ¹ÙÍøѧϰ¸ü¶àÓйشúÂëÍйܺͰ汾¿ØÖƵÄ֪ʶ¡£
ÒÔÉϾÍÊÇÔõÑùÔÚÆ»¹ûϵͳÉÏʹÓÃGiteeµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡