gitÏÂÁîÕÒ²»µ½Ôõô»ØÊÂ
ÔÚʹÓÃgitʱ£¬ÎÒÃÇÓÐʱ»áÓöµ½ÏÂÃæÕâÑùµÄ¹ýʧÌáÐÑ£º¡°gitÏÂÁîÕÒ²»µ½¡±¡£Õâ¸ö¹ýʧ¿ÉÄÜ·ºÆðÔÚÎÒÃÇ×°ÖÃÁËgitµ«ÔÚÏÂÁîÐнçÃæÊäÈëgitʱ·ºÆð£¬Ò²¿ÉÄÜÔÚÎÒÃÇÖ´ÐÐgitÏÂÁîʱ·ºÆð¡£½ÓÏÂÀ´£¬ÎÒÃǾÍÀ´Ì½ÌÖÒ»ÏÂÕâ¸öÎÊÌâµÄ¿ÉÄÜÔµ¹ÊÔÓÉÒÔ¼°½â¾öÒªÁì¡£
Ôµ¹ÊÔÓÉÒ»£ºGitûÓÐ׼ȷװÖÃ
ÈôÊÇÄãÔÚ×°ÖÃGitʱѡÔñÁËĬÈÏÑ¡ÏGit½«±»×°Öõ½¡°C:\Program Files\Git¡±Îļþ¼ÐÏ¡£¿ÉÊÇ£¬ÔÚijЩÇéÐÎÏ£¬×°ÖÿÉÄÜ·ºÆð¹ýʧ£¬µ¼ÖÂGitûÓÐÀÖ³É×°ÖûòÕßÎÞ·¨×¼È·Ê¶±ðϵͳÇéÐαäÁ¿¡£ÈôÊÇÕâÊÇÎÊÌâµÄÔµ¹ÊÔÓÉ£¬ÎÒÃÇÐèÒªÏÈжÔØGit£¬È»ºóÖØÐÂ×°Öá£
ÎÞ·Á°´ÏÂWindows¼ü²¢¼üÈë¡°¿ØÖÆÃæ°å¡±¡£ÔÚ¡°¿ØÖÆÃæ°å¡±ÖУ¬·¿ª¡°³ÌÐòºÍ¹¦Ð§¡±²Ëµ¥£¬ÕÒµ½Git²¢Ð¶ÔØËü¡£Ð¶ÔØÍê³ÉÖ®ºó£¬Æ¾Ö¤GitµÄ¹Ù·½ÎĵµÖ¸ÒýÖØÐÂ×°ÖÃÒ»±é£¬È»ºóÖØÆôµçÄÔ¡£´ËʱÔÙ´ÎʵÑéÔÚÏÂÁîÐнçÃæÖÐÊäÈëgitÏÂÁӦ¸Ã¾Í¿ÉÒÔÕý³£Ê¹ÓÃÁË¡£
Ôµ¹ÊÔÓɶþ£ºÇéÐαäÁ¿ÉèÖò»×¼È·
Git×°ÖÃÖ®ºóÐèÒª½«Ïà¹ØÇéÐαäÁ¿ÉèÖõ½ÏµÍ³µÄPATHÖУ¬ÒÔ±ãWindowsÄܹ»×¼È·ÆÊÎöGitÏÂÁî¡£ËäÈ»ÔÚĬÈÏÇéÐÎÏ£¬Git×°ÖóÌÐòÒѾ½«ÕâЩÇéÐαäÁ¿ÉèÖúÃÁË£¬¿ÉÊÇÔÚһЩÌØÊâÇéÐÎÏ£¬ºÃ±È×ÔÐÐÐÞ¸ÄÁËϵͳÇéÐαäÁ¿ºóδÄÜ׼ȷÉèÖ㬾ͻᵼÖÂgitÏÂÁîÕÒ²»µ½µÄÇéÐηºÆð¡£
Òª½â¾öÕâ¸öÎÊÌ⣬ÎÒÃÇÐèÒª¼ì²éÒ»ÏÂϵͳÇéÐαäÁ¿µÄÉèÖÃÊÇ·ñ׼ȷ¡£¿ÉÒÔ°´ÏÂWindows¼ü²¢¼üÈë¡°ÇéÐαäÁ¿¡±£¬Ñ¡Ôñ¡°±à¼ÏµÍ³ÇéÐαäÁ¿¡±£¬ÔÚ¡°ÏµÍ³ÊôÐÔ¡±´°¿ÚÖÐÑ¡Ôñ¡°¸ß¼¶¡±Ñ¡Ï£¬È»ºóÕÒµ½¡°ÇéÐαäÁ¿¡±°´Å¥¡£
Ôڸô°¿ÚÖУ¬¿ÉÒÔ¿´µ½ÏµÍ³±äÁ¿PathµÄÖµÖÐÊÇ·ñº¬ÓС°C:\Program Files\Git\bin¡±¡£ÈôÊÇûÓУ¬ÐèÒªÊÖ¶¯Ìí¼Ó·¾¶¡£Ìí¼ÓÍê³Éºó£¬°´Ï¡°È·¶¨¡±ÉúÑÄ£¬È»ºóÖØз¿ªÏÂÁîÐд°¿Ú£¬ÊäÈëgitÏÂÁî¡£¼ì²éÒ»ÏÂÊÇ·ñ½â¾öÁËÎÊÌâ¡£
Ôµ¹ÊÔÓÉÈý£ºÆô·¢Ê½Ëã·¨¹ýʧ
ÔÚijЩÇéÐÎÏ£¬GitΪÏàʶ¾ö¼æÈÝÐÔÎÊÌ⣬¿ÉÄÜ»áʹÓÃһЩÆô·¢Ê½Ëã·¨£¬µ«Õâ¿ÉÄÜ»á´øÀ´Ò»Ð©ÎÊÌâ¡£ÈôÊÇÄãÔÚÏÂÁîÐÐÖÐÖ´ÐÐÏÂÁîʱ×ÜÊÇÌø³öWindows¹ýʧµ¯´°£¬ÌáÐÑ¡°gitÏÂÁîÕÒ²»µ½¡±£¬Õâ¿ÉÄܾÍÊÇÒ»¸öµä·¶µÄ¹ýʧ¡£
½â¾öÕâ¸öÎÊÌâµÄÒªÁìÊÇÆôÓÃGitµÄÓ²Á´½Ó¹¦Ð§¡£ÔÚÎÒÃÇÖØÐÂ×°ÖÃGitʱ£¬ÇëÑ¡ÔñÔÚ¡°Ñ¡Ôñ×é¼þ¡±ÏÂÑ¡Ôñ¡°Windows Explorer¼¯³É£¨½«Git¼ÓÈëϵͳ²Ëµ¥£©¡±ºÍ¡°Git LFS£¨°üÀ¨Git Large File Storage£©¡±Ñ¡ÏÕâÑù¾Í¿ÉÒÔÆôÓÃGitµÄÓ²Á´½Ó¡£
×ܽá
ÒÔÉϾÍÊdz£¼ûµÄ¡°gitÏÂÁîÕÒ²»µ½¡±ÎÊÌâµÄ½â¾öÒªÁì¡£ÔÚ½â¾öÎÊÌâ֮ǰ£¬ÎÒÃÇÐèÒªÏÈͨ¹ýÅÅÅÌÎÊÌâ¿ÉÄܱ£´æµÄÔµ¹ÊÔÓÉ£¬²Å»ªÕÒµ½×¼È·µÄ½â¾ö¼Æ»®¡£ÈôÊÇÊìÁ·ÕÆÎÕGitµÄ»ù±¾Ê¹ÓÃÒªÁ죬ÎÒÃǾÍÄܸü¿ìËÙ¡¢¸ßЧµØ½â¾ö·ºÆðµÄÎÊÌâ¡£
ÒÔÉϾÍÊÇgitÏÂÁîÕÒ²»µ½Ôõô»ØʵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡