ÔõÑù½â¾ögit statusÖÐÎÄÂÒÂëµÄÎÊÌâ
gitÊÇÏÖÔÚ×îÊ¢Ðеİ汾¿ØÖƹ¤¾ßÖ®Ò»£¬¶øÔÚʹÓÃgitʱ£¬Ò»Ð©ÖÐÎÄÏîĿ·¾¶»òÎļþÃû¿ÉÄ᷺ܻÆðÂÒÂ룬ÌØÊâÊÇÔÚʹÓÃgit statusÏÂÁîʱ£¬¿ÉÄܻῴµ½ÀàËÆÓÚ¡°\344\270\215\345\231\250\346\265\213¡±£¬ÕâÖÖÂÒÂë¶Ô×ðÁú¿Ê±´úÂëÖÎÀí¡¢Ð×÷Óëά»¤´øÀ´Á˺ܴóµÄÀ§ÈÅ¡£±¾ÎĽ«ÏÈÈÝÔõÑù½â¾ögit statusÖÐÎÄÂÒÂëµÄÎÊÌâ¡£
µÚÒ»²½£ºÉó²égitÉèÖÃ
ÎÒÃÇÏÈÔÚÖÕ¶ËÊäÈëÒÔÏÂÏÂÁÉó²éGitµÄÉèÖãº
git config --list
µÇ¼ºó¸´ÖÆ
´ËÏÂÁî¿ÉÒÔÁгöGitµÄËùÓÐÉèÖÃÐÅÏ¢£¬°üÀ¨Óû§ÐÅÏ¢¡¢Ä¬Èϱà¼Æ÷µÈ¡£ÔÚÆäÖУ¬ÎÒÃÇÐèÒª¹Ø×¢ÒÔÏÂÁ½¸öÉèÖÃÏ
core.quotepath=false core.assumeunicode=true
µÇ¼ºó¸´ÖÆ
µÚ¶þ²½£ºÐÞ¸ÄÉèÖÃÏî
ÈôÊÇÒÔÉÏÁ½¸öÉèÖÃÏîµÄÖµ²»ÊÇÉÏÊöµÄ¡°false¡±ºÍ¡°true¡±£¬ÔòÎÒÃÇÐèҪʹÓÃÒÔÏÂÏÂÁîÀ´¸ü¸ÄÕâÁ½¸öÖµ£º
git config --global core.quotepath false git config --global core.assumeunicode true
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÏÂÁîÖУ¬”–global”²ÎÊýÌåÏÖÈ«¾ÖÉèÖã¬Òâζ×ÅËùÓеÄGit¿ÍÕ»¶¼½«Ê¹ÓÃÕâЩÉèÖá£
µÚÈý²½£ºÖØз¿ªTerminal
ÔÚÐÞ¸ÄÍêÒÔÉÏÉèÖÃÏîºó£¬ÐèÒªÍ˳öÄ¿½ñÖն˴°¿Ú²¢ÖØз¿ªÒ»¸öÖնˣ¬ÈÃÐ޸ĵÄÉèÖÃÏîÉúЧ¡£
µÚËIJ½£ºÉó²éÖÐÎÄÎļþÃû
ÏÖÔÚÎÒÃÇ¿ÉÒÔʹÓÃgit statusÏÂÁîÀ´Éó²éÖÐÎÄÎļþÃûµÄ״̬ÁË£¬ÀýÈ磺
git status
µÇ¼ºó¸´ÖÆ
ÈôÊÇÈÔÈ»·ºÆðÂÒÂ룬¿ÉÒÔʵÑéʹÓÃÒÔÏÂÏÂÁ
git config --global core.quotepath true git config --global core.quotepath false
µÇ¼ºó¸´ÖÆ
ÕâÁ½ÌõÏÂÁîµÄ×÷ÓÃÊÇÖØÖÃcore.quotepathÉèÖÃÏʲô¶¼²»ÉèµÄÇéÐÎÏ£¬git config½ö½öÏÔʾdifference£¬µ«²»»áÏÔʾnon-ascii characted(°üÀ¨ÖÐÎÄ)µÄÎļþÃû¡£µÚÒ»ÌõÏÂÁî»áÏÔʾnon-ascii characted(°üÀ¨ÖÐÎÄ)µÄÎļþÃû£¬¶øµÚ¶þÌõÏÂÁîÔòÏà·´¡£
µÚÎå²½£ºÆäËûÎÊÌâ
³ýÁËÉÏÊöµÄÎÊÌ⣬ÉÐÓпÉÄÜ·ºÆðÎļþÃûÌ«³¤µÈÎÊÌâ¡£¹ØÓÚÕâÖÖÇéÐΣ¬¿ÉÒÔʹÓÃGitµÄLFS£¨´óÎļþ´æ´¢£©¹¦Ð§À´½â¾ö¡£LFS¿ÉÒÔʹGit´¦Öóͷ£´óÐͶþ½øÖÆÎļþµÄÄÜÁ¦»ñµÃÔöÇ¿£¬ËüÖ§³Ö¶Ô´óÎļþ¾ÙÐа汾¿ØÖÆ¡¢´«ÊäºÍ´æ´¢£¬´Ó¶øʹµÃGit¸üÒ×Óᢸü¿ìËÙ¡¢¸üÎÞа¡£
×ܽ᣺
ÒÔÉÏÊǽâ¾ögit statusÖÐÎÄÂÒÂëµÄÒªÁì¡£ÈôÊÇÖÐÎÄÂÒÂëµÄÎÊÌâÒÀ¾É±£´æ£¬½¨Òé¼ì²é´úÂëÖÐÊÇ·ñ±£´æÖÐÎÄ×Ö·û±àÂë·×ÆçÖµÄÇéÐΣ¬»òÕßʵÑéʹÓÃÆäËü°æ±¾¿ØÖƹ¤¾ßÀ´Ìæ»»Git¡£ÔÚÏÖʵÏîÄ¿ÖУ¬»¹Ó¦¸Ã×ñÊع淶£¬Ö»¹Ü×èÖ¹ÔÚÎļþÃûºÍÏîĿ·¾¶ÖÐʹÓÃÖÐÎĵÈÌØÊâ×Ö·û£¬ÒÔÃâÒýÆð¸ü¶àµÄ²»ÐëҪƶÀ§ºÍ¹ýʧ¡£
ÒÔÉϾÍÊÇÔõÑù½â¾ögit statusÖÐÎÄÂÒÂëµÄÎÊÌâµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡