githubÔõô´î½¨Ð¡ÎÒ˽ÈËÍøÕ¾
Ëæ×ſƼ¼ºÍ»¥ÁªÍøµÄÉú³¤£¬Ô½À´Ô½¶àµÄÈ˶¼Àë²»¿ª»¥ÁªÍøµÄʹÓ㬶øСÎÒ˽È˵ÄÍøÕ¾ÒѾ³ÉΪÁËÈËÃÇÕ¹ÏÖ×Ô¼ºµÄÖ÷Ҫ;¾¶Ö®Ò»¡£ÄÇôÔõÑù´î½¨Ò»¸öСÎÒ˽ÈËÍøÕ¾ÄØ£¿±¾ÎĽ«ÏÈÈÝÒ»¸ö¼òÆÓÒ׶®µÄÒªÁ졪¡ªÊ¹ÓÃgithub´î½¨Ð¡ÎÒ˽ÈËÍøÕ¾¡£
Ò»¡¢ÉêÇëÕ˺Å
Ê×ÏÈ£¬ÐèÒªÔÚgithub¹ÙÍøÉÏÉêÇëÒ»¸öÕ˺š£ÔÚÉêÇëÕ˺ÅÀú³ÌÖÐÐèÒªÌîдСÎÒ˽ÈËÐÅÏ¢£¬ÈçÓÊÏä¡¢Óû§Ãû¡¢ÃÜÂëµÈ¡£ÔÚÉêÇëÍê³Éºó£¬¿ÉÒÔ½¨Éè×Ô¼ºµÄµÚÒ»¸ö¿â(repository)¡£
¶þ¡¢½¨Éè¿â
µã»÷Õ˺ÅÊ×Ò³ÓÒÉϽǵġ°+¡±°´Å¥£¬Ñ¡Ôñ¡°New repository¡±(н¨¿â)¡£½øÈë¸ÃÒ³Ãæºó£¬ÐèÒªÌîдһЩ»ù±¾ÐÅÏ¢£º
Repository name£º¿âÃû³Æ£¬¿ÉÒÔÊÇÈκÎÄãϲ»¶µÄÃû³Æ¡£
Description£º¿âÐÎò£¬¿ÉÒÔ¼òÆÓ˵Ã÷Õâ¸ö¿âµÄ×÷Óá£
Public/Private£º¿âµÄȨÏÞÉèÖ㬹ûÕæ»ò˽ÓС£
Initialize this repository with a README£º¹´Ñ¡¸ÃÑ¡Ï¿ÉÒÔÔÚ½¨Éè¿âʱ×Ô¶¯ÌìÉúREADMEÎļþ£¬Àû±ãºóÐø±à¼¡£
Add .gitignore: ¿ÉÒÔÑ¡ÔñʹÓÃ.gitignore¹æÔòÖÎÀí°æ±¾¿ØÖÆÖеĺöÂÔÎļþ¡£
Add a license£º¿ÉÒÔÑ¡Ôñ¿ªÔ´ÔÊÐíÖ¤ÀàÐÍ¡£
½¨ÉèÍê¿âÖ®ºó£¬ÐèÒª½«¿â¿Ë¡µ½ÍâµØ£¬È»ºóÔÚÍâµØ½¨ÉèÍøÕ¾Îļþ¼Ð£¬½«×Ô¼ºµÄÍøÕ¾Îļþ·Åµ½¸ÃÎļþ¼ÐÖС£
Èý¡¢½¨ÉèÍøÕ¾
ÔÚÍâµØ½¨ÉèÍøÕ¾Îļþ¼Ðºó£¬¿ÉÒÔÔÚ¸ÃÎļþ¼ÐÖÐÌí¼ÓÍøÕ¾Îļþ¡£Ïêϸ¿ÉÒÔʹÓÃHTML¡¢CSS¡¢JavaScriptµÈÓïÑÔÀ´±àд¡£ÔÚÍøÕ¾Îļþ¼ÐÖУ¬ÐèÒªÌí¼ÓÒ»¸öÃûΪ¡°index.html¡±µÄÎļþ£¬¸ÃÎļþÊÇÕû¸öÍøÕ¾µÄÈë¿ÚÎļþ¡£ÍøÕ¾Îļþ¼ÐµÄϲãÎļþºÍÎļþ¼Ð¿ÉÒÔƾ֤ÐèÒªÖðÒ»Ìí¼Ó¡£
ËÄ¡¢ÉÏ´«ÍøÕ¾Îļþµ½github
ÔÚÍøÕ¾Îļþ¼ÐÖÐÌí¼ÓÍêËùÓеÄÍøÕ¾Îļþºó£¬ÐèÒª½«ÎļþÉÏ´«µ½githubÖС£¿ÉÒÔʹÓÃgitÏÂÁîÐлòÕßgithub¿Í»§¶Ë¾ÙÐÐÉÏ´«²Ù×÷¡£ÔÚÉÏ´«Ê±£¬ÐèҪעÖØÒÔϼ¸µã£º
½«ÍøÕ¾Îļþ¼Ð³õʼ״̬Ìí¼Óµ½¿ÍÕ»ÖÐ
git add . git commit -m 'initial commit'
µÇ¼ºó¸´ÖÆ
½«¿ÍÕ»ÖеÄÎļþÍÆË͵½github
git push origin master
µÇ¼ºó¸´ÖÆ
ÖÁ´Ë£¬ÍøÕ¾µÄ»ù±¾´î½¨Àú³Ì¿¢Ê¡£
Îå¡¢ÉèÖÃgithub pages
Github PagesÊÇgithubÌṩµÄÃâ·Ñ¾²Ì¬ÍøÕ¾ÍйÜЧÀÍ£¬¿ÉÒÔͨ¹ý¸ÃЧÀÍÀ´Õ¹Ê¾×Ô¼ºµÄСÎÒ˽ÈËÍøÕ¾¡£ÉèÖÃGithub PagesÐèÒªÍê³ÉÒÔϼ¸²½£º
ÔÚÐèչʾµÄ¿ÍÕ»ÖУ¬µã»÷settings²Ëµ¥
ÕÒµ½¡°Github Pages¡±ÇøÓò£¬Ñ¡Ôñ¡°master branch¡±·ÖÖ§²¢µã»÷¡°Save¡±
ÔÚGithub PagesÉèÖÃÇøÓòÏ·½£¬»áÏÔʾ³öÍøÕ¾µÄ»á¿´·¨Ö·
תµ½ÍøÕ¾»á¿´·¨Ö·£¬È·ÈÏÊÇ·ñÕý³£»á¼û
ÈôÊÇÐèÒª×Ô½ç˵ÍøÕ¾ÓòÃû£¬¿ÉÒÔÔÚGithub PagesÉèÖÃÇøÓòÖÐÌí¼Ó×Ô¼ºµÄÓòÃû¡£
Áù¡¢Íøվά»¤
ÍøÕ¾´î½¨Íê³Éºó£¬ÐèҪά»¤ÍøÕ¾£¬Ò»Á¬¸üÐÂÍøÕ¾ÄÚÈÝ¡¢ÐÞ¸´ÍøÕ¾Îó²î¡£ÈôÊÇÓöµ½ÁËÎÊÌ⣬¿ÉÒÔÉó²égithubÖеÄÏìÓ¦Îĵµ»òÕßÔÚÉçÇø×·Çó×ÊÖú¡£
×ܽá
ʹÓÃgithub´î½¨Ð¡ÎÒ˽ÈËÍøÕ¾£¬ÊÇÒ»¸ö¼òÆÓÃ÷ÎúµÄÒªÁì¡£Ö»ÐèÒªÉêÇëÒ»¸öÕ˺š¢½¨Éè¿â¡¢Ìí¼ÓÍøÕ¾Îļþ¡¢ÉÏ´«µ½github²¢ÉèÖÃGithub Pages¼´¿ÉÍê³ÉСÎÒ˽ÈËÍøÕ¾µÄ´î½¨¡£Í¨¹ýÍøÕ¾£¬¿ÉÒÔÏò¸ü¿í´óµÄÓû§Õ¹Ê¾×Ô¼ºµÄ²Å»ªºÍ×÷Æ·£¬Ò²¿ÉÒÔ½¨Éè×Ô¼ºµÄÊÖÒÕ²©¿Í¡¢Ð¡ÎÒ˽È˼òÀúµÈ¡£ÔÚ½¨Õ¾µÄÀú³ÌÖУ¬ÐèҪעÖØ°ü¹ÜÍøÕ¾µÄÇå¾²ÐÔºÍÎȹÌÐÔ£¬°´ÆÚ¸üÐÂÍøÕ¾µÄÄÚÈݺÍά»¤ÍøÕ¾µÄ¹¦Ð§£¬ÈÃ×Ô¼ºµÄÍøÕ¾ÕæÕý³ÉΪһ¸öÓмÛÖµµÄ×ÊÔ´¡£
ÒÔÉϾÍÊÇgithubÔõô´î½¨Ð¡ÎÒ˽ÈËÍøÕ¾µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡