×ðÁú¿­Ê±¹ÙÍøµÇ¼

ÆÊÎöGitÈÏ֤ʧ°ÜµÄÔµ¹ÊÔ­Óɼ°½â¾ö²½·¥

Ç°ÑÔ

GitÊÇÏÖÔÚ×îÖ÷Á÷µÄ´úÂëÖÎÀíºÍ°æ±¾¿ØÖƹ¤¾ßÖ®Ò»£¬ÔÚÆóÒµºÍ¿ªÔ´ÉçÇøÆÕ±éʹÓá£ÔÚʹÓà Git ¾ÙÐдúÂëÖÎÀíʱ£¬¿ÉÄÜ»áÓöµ½ Git ÈÏ֤ʧ°ÜµÄÎÊÌâ¡£±¾ÎĽ«ÆÊÎöGitÈÏ֤ʧ°ÜµÄÔµ¹ÊÔ­Óɼ°¿ÉÄܵĽâ¾öÒªÁì¡£

Ò»¡¢GitÈÏ֤ʧ°ÜµÄÔµ¹ÊÔ­ÓÉ

1.ƾ֤»º´æʧЧ

ÔÚʹÓà Git ʱ£¬ÎÒÃÇͨ³£ÐèÒªÌṩƾ֤ÒÔ¾ÙÐÐÉí·ÝÈÏÖ¤¡£µ±ÎÒÃǵÄƾ֤±»»º´æºó£¬¿ÉÒÔïÔÌ­ÎÒÃÇÔÚÿ¸ö²Ù×÷Öж¼ÐèÒªÊäÈëÓû§ÃûºÍÃÜÂëµÄƶÀ§¡£¿ÉÊÇ£¬Git »º´æƾ֤µÄʱ¼äÊÇÓÐÏ޵ģ¬ÈôÊÇÁè¼ÝÁË»º´æʱ¼ä£¬ÄÇô Git ½«ÎÞ·¨ÑéÖ¤ÄúµÄÉí·Ý¡£

2.ʹÓùýʧµÄƾ֤

ÈôÊÇÄúÔÚ Git ÖÐʹÓÃÁ˹ýʧµÄƾ֤£¬Git ½«ÎÞ·¨ÑéÖ¤ÄúµÄÉí·Ý£¬´Ó¶øµ¼Ö Git ÈÏ֤ʧ°Ü¡£ÀýÈ磬Äú¿ÉÄÜʹÓÃÁ˲»×¼È·µÄÓû§Ãû»òÃÜÂëµÈ¡£

3.ÉèÖÃÎÊÌâ

ÈôÊÇÄúµÄ Git ÉèÖñ£´æÎÊÌ⣬ÄÇô Git ¿ÉÄÜÎÞ·¨Í¨¹ýÑéÖ¤ÄúµÄÉí·Ý¡£ÀýÈ磬¿ÉÄÜ»áÓÉÓÚÔÚ Git µÄÉèÖÃÖÐÉèÖÃÁ˹ýʧµÄÉí·ÝÑéÖ¤ÒªÁì¶øµ¼ÖÂÉí·ÝÑé֤ʧ°Ü¡£

4.ÍøÂçÅþÁ¬ÎÊÌâ

ÈôÊÇÄúµÄÍøÂçÅþÁ¬±£´æÎÊÌ⣬¿ÉÄܻᵼÖ Git ÈÏ֤ʧ°Ü¡£ÀýÈ磬ÓÐʱ¿ÉÄÜÔÚÅþÁ¬µ½Ô¶³Ì´æ´¢¿âʱ·ºÆðÍøÂçÅþÁ¬ÎÊÌ⣬µ¼Ö Git ÎÞ·¨ÑéÖ¤ÄúµÄÉí·Ý¡£

¶þ¡¢½â¾öGitÈÏ֤ʧ°ÜµÄÒªÁì

1.Ë¢ÐÂƾ֤»º´æ

ÔÚ Git ÖУ¬Äú¿ÉÒÔʹÓá°git config credential.helper store¡±ÏÂÁîÀ´ÆôÓÃƾ֤»º´æ¡£µ±ÄúʹÓôËÏÂÁîºó£¬Git ½«»áÔÚƾ֤»º´æÖÐÉúÑÄÄúµÄÉí·ÝÑé֤ƾ֤£¬ÏÂÒ»´ÎÄúÔٴλá¼û´æ´¢¿âʱ£¬Git »áʵÑé´Ó»º´æÖжÁÈ¡ÄúµÄƾ֤£¬ÈôÊDZ£´æ»º´æ£¬Ôò Git ½«²»ÐèÒªÔÙ´ÎÌáÐÑÄúÊäÈëƾ֤¡£

ÈôÊÇÄúÔÚ Git ÖÐÓöµ½ÁËÈÏ֤ʧ°ÜÎÊÌ⣬ÄÇô¿ÉÒÔʵÑéͨ¹ýË¢ÐÂƾ֤»º´æÀ´½â¾öËü¡£Äú¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´É¨³ý»º´æ£º

git config –global –unset credential.helper

È»ºóÔÙÔËÐÐÒÔÏÂÏÂÁîÀ´ÖØÖûº´æ£º

git config –global credential.helper store

2.¼ì²éƾ֤ÊÇ·ñ׼ȷ

ÈôÊÇÄúµÄ Git ƾ֤ÒѾ­ÓâÆÚ»òÒѸü¸Ä£¬ÄÇôÄú¿ÉÄÜÐèÒª¸üÐÂƾ֤ÐÅÏ¢¡£Äú¿ÉÒÔÔËÐÐÒÔÏÂÏÂÁîÀ´¸üÐÂÄúµÄ Git ƾ֤ÐÅÏ¢£º

git config –global user.name ¡°YourUsername¡±

git config –global user.email ¡°youremail@example.com¡±

git config –global credential.helper store

×¢ÖØ£ºÉÏÊöÏÂÁ»áµ¯³öÒ»¸öÊäÈë¿òÈÃÄúÊäÈëÄúµÄ Git Óû§ÃûºÍÃÜÂë¡£

3.¼ì²éGitÉèÖÃ

ÈôÊÇÄúÓöµ½ÁËGitÈÏ֤ʧ°ÜµÄÎÊÌ⣬ÄÇôҲ¿ÉÒÔ¼ì²éÄúµÄ Git ÉèÖÃÊÇ·ñ׼ȷ¡£Äú¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´¼ì²é Git ÉèÖãº

git config –list

ÈôÊÇÊä³öµÄЧ¹û±£´æ²»×¼È·µÄÉèÖÃÏÄÇôÄú¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁîÀ´ÐÞ¸ÄÄúµÄ Git ÉèÖãº

git config –global –replace-all user.name ¡°YourUsername¡±

git config –global –replace-all user.email ¡°youremail@example.com¡±

4.¼ì²éÍøÂçÅþÁ¬

ÈôÊÇÄúµÄÍøÂçÅþÁ¬·ºÆðÎÊÌ⣬ÄÇô¿ÉÄÜ»áÓ°Ïìµ½ Git µÄÉí·ÝÑéÖ¤¡£Äú¿ÉÒÔʵÑéʹÓà ping ÏÂÁîÀ´²âÊÔÍøÂçÅþÁ¬ÊÇ·ñÕý³££¬ÀýÈ磺

ping www.github.com

ÈôÊÇÄúÎÞ·¨ÅþÁ¬µ½Ð§ÀÍÆ÷£¬Çë¼ì²éÄúµÄÍøÂçÅþÁ¬ÊÇ·ñ±£´æÎÊÌâ¡£Äú¿ÉÒÔʵÑéÖØÆôÄúµÄÍøÂçÅþÁ¬×°±¸»ò¸ü¸ÄÍøÂçÉèÖÃÀ´½â¾öÍøÂçÅþÁ¬ÎÊÌâ¡£

½áÓï

±¾ÎÄÏÈÈÝÁËGitÈÏ֤ʧ°ÜµÄÔµ¹ÊÔ­ÓÉÒÔ¼°¿ÉÄܵĽâ¾öÒªÁì¡£µ±ÄúÓöµ½´ËÀàÎÊÌâʱ£¬ÇëÏÈɨ³ýÉÏÊöµÄÔµ¹ÊÔ­ÓÉ£¬²¢Æ¾Ö¤ÄúµÄÏêϸÇéÐÎÑ¡ÔñÊʵ±µÄ½â¾öÒªÁ졣ϣÍû±¾ÎÄÄܶÔÄúÓÐËù×ÊÖú¡£

ÒÔÉϾÍÊÇÆÊÎöGitÈÏ֤ʧ°ÜµÄÔµ¹ÊÔ­Óɼ°½â¾ö²½·¥µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Á¢³¡£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ