ÔõÑùʹÓÃGitHubÉÏ´«Îļþ£¨°ì·¨£©
ÔÚ½ñÌìµÄÊÖÒÕÉç»áÖУ¬Ô½À´Ô½¶àµÄÊÂÇéºÍѧϰ¶¼ÐèÒªÔÚµçÄÔÉϾÙÐС£ÌØÊâÊÇÔÚ³ÌÐò¿ª·¢¡¢Éè¼Æ¡¢Ð´×÷µÈÁìÓò£¬Ê¹ÓõçÄÔÒѾ³ÉΪÁËÒ»Ñùƽ³£¡£¶ø×÷ΪһÃûit´ÓÒÃ÷ÈÕߣ¬ÔÚÊÂÇéºÍѧϰÖУ¬Ê¹ÓÃgithubÉÏ´«ÎļþÒѾ³ÉΪһ¸ö·Ç¾³£¼ûµÄÐÐΪ¡£ÒÔÊÇ£¬±¾ÎĽ«ÏÈÈÝÔõÑùʹÓÃgithubÉÏ´«Îļþ¡£
Ò»¡¢×¢²áGitHubÕ˺Å
Ê×ÏÈ£¬ÔÚGitHubÉÏ´«ÎļþÇ°£¬ÐèÒªÏÈ×¢²áÒ»¸öGitHubÕ˺š£ÎÒÃÇ¿ÉÒÔÔÚGitHub¹ÙÍø¾ÙÐÐ×¢²á£¬ÕâÒ»Àú³ÌºÜÊǼòÆÓ£¬Ö»ÐèÒªÌîдÓÊÏäµØµãºÍÃÜÂë¼´¿É¡£
¶þ¡¢½¨ÉèеÄrepository
×¢²áºÃÕ˺ź󣬵ǼGitHubÕ˺ţ¬ÎÒÃÇ¿ÉÒÔ¿´µ½¡°Repositories¡±Ñ¡Ï£¬µã»÷½øÈ룬Ȼºóµã»÷¡°New¡±°´Å¥£¬×îÏȽ¨ÉèеÄrepository¡£
ÔÚ½¨Éèrepositoryʱ£¬ÐèÒªÌîдrepositoryµÄÃû³Æ¡¢ÐÎò¡¢ReadmeÎļþÒÔ¼°licenseµÈÐÅÏ¢¡£ÌîдÍê±Ïºó£¬µã»÷¡°Create repository¡±°´Å¥£¬¼´¿ÉÀֳɽ¨ÉèÒ»¸öеÄrepository¡£
Èý¡¢ÉÏ´«Îļþ
1.ʹÓÃGitÏÂÁîÐÐÉÏ´«Îļþ
ÔÚ½¨ÉèºÃеÄrepositoryºó£¬ÎÒÃÇ¿ÉÒÔʹÓÃGitÏÂÁîÐÐÉÏ´«Îļþ¡£Ê×ÏÈ£¬ÐèÒªÔÚÍâµØ½¨ÉèºÃÒªÉÏ´«µÄÎļþ¼Ð²¢ÇÒÌí¼ÓÎļþµ½Îļþ¼ÐÖУ¬È»ºó·¿ªGitÏÂÁîÐУ¬Ê¹ÓÃcdÏÂÁî½øÈëÒªÉÏ´«µÄÎļþ¼ÐËùÔÚµÄĿ¼¡£
½Ó×Å£¬ÒÀ´ÎÖ´ÐÐÒÔÏÂÏÂÁî:
git init
git add .
git commit -m “first commit”
git remote add origin [repositoryµÄµØµã]
git push -u origin master
ÆäÖУ¬[repositoryµÄµØµã]ÐèÒª»»³É×Ô¼º½¨ÉèµÄrepositoryµÄµØµã¡£
Ö´ÐÐÍêÒÔÉϲÙ×÷ºó£¬Git»á½«ÍâµØÎļþ¼ÐÖеÄÎļþÍƵ½GitHubÉÏ£¬Íê³ÉÎļþÉÏ´«¡£
2.ʹÓÃGitHub DesktopÉÏ´«Îļþ
GitHub DesktopÊÇGitHub¹Ù·½³öÆ·µÄÒ»¿î¿ÉÊÓ»¯ÉÏ´«GitµÄ¹¤¾ß£¬ÊÊÓÃÓÚ²»ÊìϤGitÏÂÁîÐеÄÓû§£¬Ê¹ÓúÜÊǼòÆÓ¡£
ÏÂÔز¢×°ÖÃGitHub Desktopºó£¬·¿ª¸ÃÈí¼þ£¬µã»÷¡°Add¡±°´Å¥Ìí¼ÓÒªÉÏ´«µÄ¿ÍÕ»£¬²¢µã»÷¡°Publish¡±°´Å¥ÉÏ´«¿ÍÕ»¼°Ïà¹ØÎļþ¼´¿É¡£
ËÄ¡¢ÔõÑùÖÎÀírepository
GitHub repositoryµÄÖÎÀíºÜÊÇÀû±ã£¬¿ÉÒÔͨ¹ýWeb½çÃæÁÙrepository¾ÙÐвÙ×÷¡£µã»÷repository£¬¼´¿É½øÈërepositoryÖ÷½çÃæ¡£ÔÚ½çÃæÓÒÉÏ·½µÄ¡°Settings¡±Ñ¡ÏîÖУ¬¿ÉÒÔ¾ÙÐÐrepositoryµÄÖÖÖÖÉèÖã¬ÀýÈçɾ³ýrepository¡¢¸ü¸üÃû³Æ¡¢ÖÎÆÊÎö¼ûȨÏ޵ȡ£
Îå¡¢×ܽá
µ½ÕâÀ¸÷È˾ͿÉÒÔͨ¹ýÒÔÉÏ°ì·¨ÀÖ³ÉʹÓÃGitHubÉÏ´«ÎļþÁË¡£ÔÚÒ»Ñùƽ³£Ñ§Ï°»òÕßÊÂÇéÖУ¬GitHubÒѾ³ÉΪÁËÒ»¸öºÜÊÇÊÊÓõŤ¾ß£¬¿ÉÒÔ×ÊÖúÎÒÃǸüºÃµØÖÎÀí¡¢·ÖÏíºÍ½»Á÷Êý¾ÝºÍ´úÂë¡£ÔÚÈÕºóµÄѧϰºÍÊÂÇéÖУ¬ÎÒÃÇÓ¦¸Ã¶à¼ÓʹÓÃGitHub£¬ÕÆÎÕÕâÒ»ÊÊÓù¤¾ßµÄʹÓÃÒªÁì¡£
ÒÔÉϾÍÊÇÔõÑùʹÓÃGitHubÉÏ´«Îļþ£¨°ì·¨£©µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡