githubÔõÑù¿ªÔ´ÏîÄ¿
½üÄêÀ´£¬¿ªÔ´Èí¼þ¿ª·¢ÒѾ³ÉΪÁËÒ»ÖÖÇ÷ÊÆ¡£github×÷Ϊ¿ªÔ´ÉçÇøµÄÖ÷Òª×é³É²¿·Ö£¬ÒѾ³ÉΪ³ÌÐòÔ±ÃÇ·ÖÏí×Ô¼ºµÄ´úÂëºÍÊÖÒÕµÄÐëÒªÖ®µØ¡£ÄÇô£¬ÔõÑùÔÚgithubÉÏ¿ªÔ´ÏîÄ¿ÄØ£¿ÏÂÃ棬ÎÒÃǽ«Îª¸÷ÈËÏÈÈÝÕâ¸öÀú³Ì¡£
µÚÒ»²½£º×¢²áGitHubÕ˺Å
Ê×ÏÈ£¬ÄãÐèÒª»á¼ûGitHubÍøÕ¾²¢×¢²áÒ»¸öÕ˺š£ÔÚ×¢ÊéÒ³ÃæÌîдÄãµÄÓû§Ãû¡¢ÃÜÂëºÍµç×ÓÓʼþµØµã£¬È»ºóÑ¡Ôñ¡°Sign up for GitHub¡±°´Å¥¡£½ÓÏÂÀ´£¬ÄãÐèҪȷÈÏÄãµÄµç×ÓÓʼþµØµã£¬È»ºóÆÚ´ýÓʼþÑéÖ¤Íê±Ï¡£
µÚ¶þ²½£º½¨ÉèÒ»¸öGitHub¿ÍÕ»
ÔÚÄãµÇ¼ÄãµÄGitHubÕ˺źó£¬ÄãÐèÒª½¨ÉèÒ»¸öGitHub¿ÍÕ»À´´æ´¢ÄãµÄ´úÂëºÍÎĵµ¡£µã»÷Ò³ÃæÓÒÉϽǵġ°New¡±°´Å¥£¬Ñ¡Ôñ¡°New repository¡±£¬È»ºóÔÚÐÂÒ³ÃæÉÏÌîдÒÔÏÂÐÅÏ¢£º
¿ÍÕ»Ãû³Æ£ºÌîдһ¸ö¼ò¶Ìµ«ÓÐÒâÒåµÄÃû³Æ£¬ÀýÈç¡°my-project¡±¡£
¿ÍÕ»ÐÎò£ºÎªÄãµÄÏîÄ¿Ìṩһ¸ö¼ò¶ÌµÄÏÈÈÝ¡£
¿ÍÕ»ÀàÐÍ£ºÑ¡ÔñÄãµÄÏîÄ¿Êǹ«¹²µÄÕÕ¾É˽Óеģ¨Ë½ÓеÄÏîÄ¿ÐèÒªÌØÁíÍ⸶·Ñ£©¡£
¿ÍÕ»×ÔÊöÎļþ£ºÄã¿ÉÒÔÌîдһЩ×ÔÊöÐÅÏ¢£¬ÀýÈçÏîÄ¿µÄÄ¿µÄ¡¢Ê¹ÓÃÒªÁì¡¢ÏÞÖƵȵȡ£
½¨ÉèÍê³É¿ÍÕ»ºó£¬Äã»á»ñµÃ¿ÍÕ»µÄµØµã£¨URL£©ºÍgitµØµã¡£ÏÖÔÚ£¬Äã¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´½«ÍâµØÏîÄ¿ÉÏ´«µ½GitHub¿ÍÕ»ÖС£
git remote add origin
git push -u origin master
µÚÈý²½£º±àдÎĵµºÍ´úÂë
ÏÖÔÚ£¬Äã¿ÉÒÔ½«ÄãµÄ´úÂëÉÏ´«µ½Ô¶³Ì¿ÍÕ»ÖС£¿ÉÊÇ£¬½öÓдúÂëÊDz»·óµÄ¡£ÄãÐèÒªÌṩһЩÎĵµ£¬ÒÔ±ãÆäËûÈË¿ÉÒÔÏàʶÄãµÄÏîÄ¿ºÍʹÓÃÒªÁì¡£ÔÚGitHubÉÏ£¬Äã¿ÉÒÔ½¨ÉèÒ»¸öREADME.mdÎļþÀ´×÷ΪÄãµÄÖ÷ÒªÎĵµ¡£READMEÎļþ¿ÉÒÔÊÇ´¿Îı¾Îļþ£¬Ò²¿ÉÒÔ°üÀ¨MarkdownÃûÌá¢HTML±ê¼ÇºÍÆäËû¶àÖÖÃûÌá£
ͬʱ£¬ÄãÒ²¿ÉÒÔÔÚ¿ÍÕ»Öдæ·ÅÄãµÄ´úÂëºÍÆäËûÎĵµ£¬È»ºó½«ËüÃÇÍйܵ½GitHubÉÏ¡£ÔÚGitHubÉÏ£¬Äã¿ÉÒÔ½¨ÉèÎļþ¼ÐÀ´×éÖ¯ÄãµÄÎļþ£¬²¢Ê¹ÓñêÇ©»ò±ê¼ÇÀ´ÐÎòËüÃÇ¡£
µÚËIJ½£º½¨Éè·ÖÖ§²¢¾ÙÐа汾¿ØÖÆ
ÔÚGitHubÉÏ£¬Äã¿ÉÒÔÇáËɵؽ¨Éè²î±ð°æ±¾µÄÏîÄ¿£¬²¢½«ËüÃÇ´æ´¢ÔÚ²î±ðµÄ·ÖÖ§ÉÏ¡£ÕâÑù£¬Äã¿ÉÒÔÇáËɵØÔÚ²î±ðµÄ°æ±¾Ö®¼ä¾ÙÐÐÇл»£¬ÒÔ²âÊÔ²î±ðµÄ¹¦Ð§»ò½â¾öÎÊÌâ¡£
ÔÚGitHubÉÏ£¬Äã¿ÉÒÔʹÓÃgit¹¤¾ßÀ´ÖÎÀíÄãµÄ·ÖÖ§¡£µ±Ä㽨ÉèÒ»¸öеķÖ֧ʱ£¬Äã¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî:
git branch
git checkout
Õ⽫½¨ÉèÒ»¸öеķÖÖ§£¬²¢´ÓÄ¿½ñµÄ·ÖÖ§ÖÐÇл»³öÀ´¡£ÄãÏÖÔÚ¿ÉÒÔÔڸ÷ÖÖ§ÉÏ×îÏÈ¿ª·¢ÄãµÄÏîÄ¿£¬²¢Ìá½»ÄãµÄ¸ü¸Ä¡£
µÚÎå²½£ºÔ¼ÇëÆäËûÈ˼ÓÈëÄãµÄÏîÄ¿
×îºóÒ»²½ÊÇÔ¼ÇëÆäËûÈ˼ÓÈëÄãµÄÏîÄ¿¡£ÔÚGitHubÉÏ£¬Äã¿ÉÒÔÔ¼ÇëÆäËûÈ˼ÓÈëÄãµÄÏîÄ¿£¬ËûÃÇ¿ÉÒÔ×ÊÖúÄ㿪·¢¡¢²âÊÔºÍά»¤ÄãµÄÏîÄ¿¡£Îª´Ë£¬Äã¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ
git remote add
ÈôÊÇÄãͨ¹ýÄãµÄgitͼÐÎÓû§½çÃæÔ¼ÇëÁËÆäËûÈË£¬ÇëÈ·±£ÏòËûÃÇÌṩÊʵ±µÄȨÏÞ£¬ÒÔ±ãËûÃÇ¿ÉÒÔ¶ÔÄãµÄÏîÄ¿¾ÙÐб༺ÍÌá½»¡£
×ܽá
ÔÚGitHubÉÏ¿ªÔ´ÏîÄ¿ÊÇÒ»ÏîÓÐȤºÍÓÐÒæµÄÊÂÇ顣ʹÓÃGitHub£¬Äã¿ÉÒÔ·ÖÏíÄãµÄ´úÂë¡¢ÎĵµºÍÆäËû×ÊÔ´£¬²¢ÓëÆäËû³ÌÐòÔ±¹²ÏíÄãµÄÊÖÒÕºÍÂÄÀú¡£ÈôÊÇÄãÏëÔÚGitHubÉÏ¿ªÔ´ÏîÄ¿£¬Çë×ñÕÕÉÏÊö°ì·¨£¬²¢È·±£ÄãµÄÏîÄ¿ÇкϿªÔ´Èí¼þµÄÒªÇó¡£
ÒÔÉϾÍÊÇgithubÔõÑù¿ªÔ´ÏîÄ¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡