githubÏîÄ¿´ÓÁã×îÏȴ
githubÊdzÌÐòÔ±±Ø±¸µÄ¿ª·¢¹¤¾ßÖ®Ò»£¬±¾ÎĽ«´ÓÁã×îÏÈÏÈÈÝÔõÑù´î½¨×Ô¼ºµÄgithubÏîÄ¿¡£
Ò»¡¢×¢²áGithubÕ˺Å
Ê×ÏÈ£¬ÐèҪע²áÒ»¸öGithubÕ˺ţ¬»á¼û https://github.com/ £¬µã»÷ÓÒÉϽǵġ°Sign up¡±°´Å¥½øÈë×¢ÊéÒ³Ã棬ÌîдÐèÒªµÄÐÅÏ¢£¬Íê³ÉÕ˺Å×¢²á¡£
¶þ¡¢½¨ÉèÏîÄ¿
ÉÏ°¶GithubÕ˺źó£¬ÔÚСÎÒ˽ÈËÖ÷Ò³ÉÏ£¬µã»÷ÓÒÉϽǵġ°+¡±°´Å¥£¬Ñ¡Ôñ¡°New repository¡±¡£ÔÚÕâÀï¿ÉÒÔ½ç˵ÏîÄ¿Ãû³Æ¡¢ÉÏ´«ÏîÄ¿ÐÎò¡¢Ñ¡Ôñ¿ªÔ´ÐÒéµÈÐÅÏ¢¡£ÈôÊÇÐèÒª½«ÍâµØÒÑÓеÄÏîÄ¿ÉÏ´«µ½GithubÉÏ£¬¿ÉÒÔÑ¡Ôñ¡°Import repository¡±£¬ÊäÈëÒªÉÏ´«µÄÏîÄ¿µØµã£¬Github»á×Ô¶¯µ¼Èë¡£
Èý¡¢ÉèÖÃgitÇéÐÎ
ÔÚWindowsϵͳÖУ¬ÐèҪװÖÃgit¿Í»§¶Ë¡£×°ÖÃÍê³Éºó£¬·¿ªÖնˣ¬ÊäÈëÒÔÏÂÏÂÁÉèÖÃÍâµØgitÓû§ÃûºÍÓÊÏ䣺
$ git config --global user.name "Your Name" $ git config --global user.email "youremail@example.com"
µÇ¼ºó¸´ÖÆ
ËÄ¡¢ÍâµØÏîÄ¿ÉÏ´«µ½Github
½«ÍâµØµÄÏîÄ¿ÉÏ´«µ½Github£¬ÐèÒªÏȽ«GithubÉÏÏîÄ¿µÄµØµã¸´ÖÆÏÂÀ´¡£ÔÚÍâµØµÄÏîÄ¿Îļþ¼ÐÖУ¬ÓÒ¼üµã»÷¡°Git Bash Here¡±£¬½øÈëgitÏÂÁîÐÐÇéÐΡ£ÊäÈëÒÔÏÂÏÂÁ
$ git init $ git add . $ git commit -m "first commit" $ git remote add origin https://github.com/<username>/<repository>.git $ git push -u origin master</repository></username>
µÇ¼ºó¸´ÖÆ
ÒÀ´ÎÖ´ÐÐÉÏÊöÏÂÁÆäÖÐ ¡° / ¡±ÐèÒªÌæ»»³É×Ô¼ºÔÚGithubÉϽ¨ÉèµÄÏîÄ¿ÃûºÍÓû§Ãû¡£
Îå¡¢ÍÆËÍÐ޸ĵ½Github
ÔÚÍâµØ¶ÔÏîÄ¿¾ÙÐÐÐ޸ĺó£¬ÐèÒª½«ÐÞ¸ÄÍÆË͵½GithubÉÏ£¬Ê¹ÓÃÒÔÏÂÏÂÁ
$ git add . $ git commit -m "update" $ git push
µÇ¼ºó¸´ÖÆ
ÕâÑù¾ÍÍê³ÉÁËGithubÏîÄ¿´ÓÁã×îÏȵĴ¡£ÒԺ󣬿ÉÒÔÔÚGithubÉÏÖÎÀí×Ô¼ºµÄ´úÂ룬²¢ÓëÈ«ÌìÏ¿ª·¢Õß·ÖÏí£¬ÒÔ´ËÔö½ø֪ʶ½»Á÷ºÍÊÖÒÕÇ°½ø¡£
ÒÔÉϾÍÊÇgithubÏîÄ¿´ÓÁã×îÏȴµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡