git clone²Ù×÷·ºÆð¡°Ã»ÓÐÎļþ¡±Ôõô½â¾ö£¿¼Æ»®Ç³Îö
git clone ÊÇʹÓà git ¹¤¾ß¾ÙÐдúÂë¿Ë¡µÄÖ¸Á¸÷ÈËÔÚʹÓà git clone µÄʱ¼ä£¬ÓÐʱ»á·ºÆð¡°Ã»ÓÐÎļþ¡±µÄÇéÐΡ£ÕâÖÖÇéÐοÉÄÜ·ºÆðµÄÔµ¹ÊÔÓÉÓÐÐí¶à£¬ÀýÈçÍøÂçÇéÐβ»Îȹ̡¢Îļþ·¾¶²»×¼È·µÈµÈ¡£ÄÇô£¬µ±Óöµ½ÕâÖÖÇéÐÎʱ£¬ÎÒÃÇÓ¦¸ÃÔõô½â¾öÄØ£¿±¾ÎĽ«Îª¸÷ÈËÏÈÈÝ git clone ²Ù×÷·ºÆð¡°Ã»ÓÐÎļþ¡±µÄÇéÐνâ¾ö¼Æ»®¡£
Ò»¡¢¼ì²éÎļþ·¾¶ÊÇ·ñ׼ȷ
µ±ÎÒÃÇÔÚÖ´ÐÐ git clone ²Ù×÷µÄʱ¼ä£¬¿ÉÄ᷺ܻÆð¡°Ã»ÓÐÎļþ¡±µÄÇéÐΣ¬Ö÷ÒªÔµ¹ÊÔÓɾÍÊÇÎļþ·¾¶²»×¼È·¡£Òò´Ë£¬ÔÚÖ´ÐÐ git clone ²Ù×÷֮ǰ£¬ÎÒÃÇÓ¦¸ÃÊ×Ïȼì²éÒ»ÏÂÎļþ·¾¶ÊÇ·ñ׼ȷ¡£
ÀýÈ磺
¼ÙÉèÎÒÃÇÒª¿Ë¡µÄÏîÄ¿ÊÇ´æ·ÅÔÚ GitHub Éϵģ¬ÎÒÃÇÔÚ¿Ë¡µÄʱ¼äÓ¦¸ÃÈ·±£ URL µØµãÊÇ׼ȷµÄ£¬ÈôÊÇ URL µØµã¹ýʧ£¬ÄÇô¾Í»á·ºÆð¡°Ã»ÓÐÎļþ¡±µÄÇéÐΡ£
¶þ¡¢¼ì²éÍøÂçÅþÁ¬ÊÇ·ñÎȹÌ
ÁíÍ⣬µ±ÎÒÃÇÖ´ÐÐ git clone ²Ù×÷µÄʱ¼ä£¬ÈôÊÇÍøÂçÇéÐβ»Îȹ̣¬Ò²ÓпÉÄ᷺ܻÆð¡°Ã»ÓÐÎļþ¡±µÄÇéÐΡ£Òò´Ë£¬ÔÚÖ´ÐÐ git clone ²Ù×÷֮ǰ£¬ÎÒÃÇÓ¦¸ÃÈ·±£ÍøÂçÅþÁ¬ÊÇÎȹ̵ģ¬×èÖ¹·ºÆðÍøÂçÖÐÖ¹µÄÇéÐΡ£
ÀýÈ磺
ÎÒÃÇ¿ÉÒÔʹÓà ping ÏÂÁî²âÊÔÍøÂçÅþÁ¬ÊÇ·ñÕý³££¬ÈôÊÇÍøÂçÅþÁ¬²»Õý³££¬ÎÒÃÇÐèÒªÏȽâ¾öÍøÂçÎÊÌâºóÔÙÖ´ÐÐ git clone ²Ù×÷¡£
Èý¡¢ÊµÑéʹÓà SSH ¿Ë¡ÏîÄ¿
ÓÐʱ£¬µ±ÎÒÃÇʹÓà HTTPS ¾ÙÐÐ git clone ²Ù×÷ʱ£¬¿ÉÄ᷺ܻÆð¡°Ã»ÓÐÎļþ¡±µÄÇéÐΡ£´Ëʱ£¬ÎÒÃÇ¿ÉÒÔʵÑéʹÓà SSH ¾ÙÐÐ git clone ²Ù×÷£¬¿´ÊÇ·ñÄܹ»½â¾öÎÊÌâ¡£
ÀýÈ磺
Ö´ÐÐ git clone ²Ù×÷ʱ£¬½« HTTPS µØµã¸Ä³É SSH µØµã£¬È»ºóÖØÐÂÖ´ÐÐ git clone ²Ù×÷¡£
ËÄ¡¢Çå¿Õ»º´æÔÙ´ÎʵÑé
ÓÐʱ£¬ÎÒÃÇÔÚÖ´ÐÐ git clone ²Ù×÷ʱ£¬¿ÉÄÜ»áÓöµ½»º´æÎÊÌ⣬´ËʱÎÒÃÇ¿ÉÒÔʵÑéÇå¿Õ»º´æ£¬È»ºóÔÙ´ÎʵÑé¾ÙÐÐ git clone ²Ù×÷¡£
ÀýÈ磺
ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÇå¿Õ git µÄÍâµØ»º´æ£º
git rm -r --cached . git add . git commit -m 'Clear cache'
µÇ¼ºó¸´ÖÆ
È»ºóÔÙÖ´ÐÐ git clone ²Ù×÷¡£
×ܽ᣺
ÔÚʹÓà git clone µÄʱ¼ä£¬·ºÆð¡°Ã»ÓÐÎļþ¡±µÄÇéÐοÉÄÜÓÐÐí¶àÔµ¹ÊÔÓÉ£¬ÎÒÃÇÐèҪƾ֤ÏêϸÇéÐνÓÄɲî±ðµÄ½â¾ö¼Æ»®¡£¹ØÓÚ·ºÆðÕâÖÖÇéÐΣ¬ÎÒÃÇ¿ÉÒÔÏȼì²éÎļþ·¾¶ÊÇ·ñ׼ȷ£¬ÍøÂçÅþÁ¬ÊÇ·ñÎȹ̣¬ÊµÑéʹÓà SSH ¿Ë¡ÏîÄ¿£¬ÒÔ¼°Çå¿Õ»º´æÔÙ´ÎʵÑéµÈ¶àÖÖÒªÁ졣ϣÍû±¾ÎĶԸ÷ÈËÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇgit clone²Ù×÷·ºÆð¡°Ã»ÓÐÎļþ¡±Ôõô½â¾ö£¿¼Æ»®Ç³ÎöµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡