ÔõôÔÚgithubÉÏ´«´úÂë
ÔÚgithubÉÏÉÏ´«´úÂëÊÇ¿ªÔ´ÉçÇø¿ª·¢µÄͨÀýÁ÷³Ì¡£
ÒÔÏÂÊÇÔÚGithubÉϽ¨ÉèºÍÉÏ´«´úÂëµÄ°ì·¨¡£
µÚÒ»²½£º½¨ÉèGithubÕ˺Å
Ê×ÏÈ£¬»á¼û¹Ù·½ÍøÕ¾https://github.com/²¢½¨ÉèÒ»¸öÃâ·ÑÕË»§¡£
µÚ¶þ²½£º½¨Éèrepository
½øÈëÄãµÄGithubÕË»§£¬µã»÷ÓÒÉϽǵġ°+¡±°´Å¥£¬Ñ¡Ôñ¡°New repository¡±¡£
ÔÚ¡°Repository name¡±ÊäÈë¿òÖУ¬ÊäÈëÄãµÄ¿ÍÕ»Ãû³Æ¡£Äã¿ÉÒÔΪ×Ô¼ºµÄ¿ÍÕ»ÃüÃû¡£ºÃ±È£¬ÏëÒªÉÏ´«´úÂëƬ¶Ï£¬¿ÉÒÔƾ֤ÃüÃû¹æÔòÃüÃû£¬ÒÔ±ãÓÚ±ðÈ˸üÈÝÒ×ÕÒµ½¡£
ÔÚ¡°Description¡±À¸ÖУ¬¼òÒªµØÏÈÈÝÄãµÄ¿ÍÕ»£¬Õâ¸ö¼ò½é½«ÔÚGithub¿ÍÕ»ÖÐչʾ¡£
ÈôÊÇÄãÏ뽫ÄãµÄ´æ´¢¿âÉèÖÃΪ¹«¹²´æ´¢¿â£¨ÍêÈ«¹ûÕ棩£¬Çë¼á³ÖÑ¡Ôñ״̬¡£
×îºó£¬¿ÉÒÔ°ÑÄãµÄÏîÄ¿µÄ´úÂëÍйÜÔÚGithubÉÏ£¬¿ÉÒÔÑ¡Ôò¡°Initialize this repository with a README¡±Ñ¡Ïî¡£ ÈôÊÇÄãÒÑÓдúÂ룬¿ÉÒÔ½«ÆäÌí¼Óµ½README.mdÎļþÖС£
µã»÷¡°Create repository¡±°´Å¥£¬ÐµĿÍÕ»¾Í½¨ÉèÀÖ³ÉÁË¡£
´Ëʱ¿ÉÔÚÄãµÄµçÄÔÉÏ×°ÖÃGit¿Í»§¶Ë£¨https://git-scm.com/downloads£©¡£
µÚÈý²½£ºÉèÖÃGit£¬ÈÃÎÒÃÇ¿ÉÒÔÔÚÍâµØÅÌËã»úÖÐÉÏ´«´úÂëµ½GithubÉÏ
ÔÚGit BashÖÐÔËÐÐÏÂÁÐÖ¸ÁîÒÔÉèÖÃGit£º
$ git config --global user.name "Your Name" $ git config --global user.email "youremail@domain.com"
µÇ¼ºó¸´ÖÆ
µÚËIJ½£º½¨ÉèÍâµØ´æ´¢¿â
½«½¨ÉèµÄGithub¿ÍÕ»¿Ë¡ÏÂÀ´µ½ÄãµÄÓ²ÅÌÖС£
ÔÚGit BashÖÐÔËÐÐÒÔÏÂÖ¸ÁîÒÔ´ÓGithubÖи´ÖÆ´æ´¢¿â£º
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
µÇ¼ºó¸´ÖÆ
µÚÎå²½£ºÉÏ´«Îļþµ½Github
½¨ÉèÎļþ¡£¿ÉÒÔ½¨ÉèÎļþ¼Ð¡¢Îı¾Îļþ¡¢Í¼ÏñÎļþµÈ¡£
¸æËßGitÄÄЩÎļþÐèÒªÉÏ´«¡£
$ git add .
µÇ¼ºó¸´ÖÆ
Ìá½»ÄãµÄ¸ü¸Ä£º
$ git commit -m "comment to changes"
µÇ¼ºó¸´ÖÆ
ÍÆÄãµÄ¸ü¸Äµ½Github£º
$ git push
µÇ¼ºó¸´ÖÆ
ÈôÊÇ´ËʱGitÌáÐÑÄãÊäÈëÓû§ÃûºÍÃÜÂ룬ƾ֤ÌáÐѲÙ×÷¼´¿É¡£
Õâ¾ÍÊÇÉÏ´«´úÂëµ½GithubµÄ»ù±¾Á÷³Ì¡£ÈôÊÇÄãÏë¸üÐÂÄãµÄGithubÉϵĴúÂ룬Öظ´µÚÎå²½¼´¿É¡£
×ܽ᣺
ÔÚGithubÉÏÉÏ´«´úÂëÊǺÜÊǼòÆӵģ¬Ö»ÐèÒª½¨ÉèÒ»¸öÕË»§£¬½¨ÉèÒ»¸ö¿ÍÕ»£¬½«ÎļþÌí¼Óµ½¸ÃÎļþ¼ÐÏ£¬Ìá½»ÄúµÄ¸ü¸Ä²¢½«ÆäÍÆË͵½GithubЧÀÍÆ÷¼´¿É¡£ËäÈ»£¬ÎªÁ˸üºÃµØÔÚGithubÉÏ·ÖÏíÄúµÄ´úÂ룬½¨ÒéÄú×öÒÔϼ¸µã£º
±àдREADMEÎļþÒÔ¸üºÃµØÐÎòÄúµÄ´úÂ룬ÎüÒý¸ü¶à¹Ø×¢¡£
ʹÓÃÇåÎú¶ø¾«Á·µÄ´úÂëÃüÃû¹æÔò£¬Àû±ãËûÈËÃ÷È·¡£
ʹÓð汾¿ØÖÆÖÎÀíÄúµÄ´úÂë¡£
Ï£ÍûÕâƪÎÄÕ¶ÔÄãÔÚGithubÉÏÉÏ´«ÄãµÄ´úÂëÓÐËù×ÊÖú£¡
ÒÔÉϾÍÊÇÔõôÔÚgithubÉÏ´«´úÂëµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡