ÔõÑùÔÚgitÖÐÐÞ¸ÄÕË»§ÃÜÂë
ÔÚgithub»ògitlabµÈ°æ±¾ÖÎÀí¹¤¾ßÖУ¬ÎÒÃÇͨ³£»áʹÓÃgit¾ÙÐдúÂëµÄÖÎÀí¡£Ê¹ÓÃgitʱ£¬ÎÒÃÇÐèÒªÊäÈëÓû§ÃûºÍÃÜÂëÀ´ÑéÖ¤ÎÒÃǵÄÉí·ÝÒÔ»á¼û¿ÍÕ»¡£¿ÉÊÇ£¬µ±ÎÒÃǵÄÃÜÂë±»µÁ»òÎÒÃÇÐèÒªÔÚ¶à¸ö×°±¸ÉÏʹÓòî±ðµÄÃÜÂëʱ£¬ÎÒÃǾÍÐèÒªÐÞ¸ÄÎÒÃǵÄÕË»§ÃÜÂë¡£ÏÂÃæÎÒ½«Îª¸÷ÈËÏÈÈÝÔõÑùÔÚgitÖÐÐÞ¸ÄÕË»§ÃÜÂë¡£
Ò»¡¢ ÐÞ¸ÄGithubÕË»§ÃÜÂë
1.Ê×ÏȵǼGithubÍøÕ¾£¬½øÈëСÎÒ˽ÈËÕË»§Ò³Ãæ¡£
2.µã»÷Ò³Ãæ×ó²àµÄ¡°Security¡±Ñ¡Ï£¬È»ºóµ¥»÷¡°Change password¡±°´Å¥¡£
3.ÊäÈëÄ¿½ñÃÜÂëºÍÐÂÃÜÂ룬µ¥»÷¡°Update password¡±°´Å¥¼´¿ÉÐÞ¸ÄGithubµÄÕË»§ÃÜÂë¡£
¶þ¡¢ ÐÞ¸ÄGitlabÕË»§ÃÜÂë
1.½øÈëGitlabÍøÕ¾£¬µÇ¼СÎÒ˽ÈËÕË»§¡£
2.ÔÚÓÒÉϽǵÄÍ·Ïñͼ±êÏÂÀ²Ëµ¥ÖУ¬Ñ¡Ôñ¡°Settings¡±Ñ¡Ïî¡£
3.ÔÚ×ó²à²Ëµ¥ÖÐÑ¡Ôñ¡°Account¡±Ñ¡Ïî¡£
4.µ¥»÷¡°Password¡±°´Å¥£¬ÊäÈëÄ¿½ñÃÜÂëºÍÐÂÃÜÂ룬µã»÷¡°Change your password¡±°´Å¥¼´¿ÉÐÞ¸ÄGitlabµÄÕË»§ÃÜÂë¡£
Èý¡¢ ÐÞ¸ÄÍâµØGitÉèÖÃÎļþÖеÄÃÜÂë
ÔÚʹÓÃgit»á¼û¿Íջʱ£¬ÎÒÃÇÐèÒª½«Óû§ÃûºÍÃÜÂëдÈëGitÉèÖÃÎļþÖС£ÈôÊÇÎÒÃÇÐÞ¸ÄÁËÕË»§ÃÜÂ룬ÎÒÃDZØÐèÐÞ¸ÄÉèÖÃÎļþÖеÄÃÜÂ룬²»È»ÎÒÃǽ«ÎÞ·¨»á¼û¿ÍÕ»¡£
1.·¿ªGit BashÏÂÁîÐС£
2.ÊäÈëÒÔÏÂÏÂÁÒÔÔÚ±à¼Æ÷Öз¿ªGitÉèÖÃÎļþ£º
git config --global --edit
µÇ¼ºó¸´ÖÆ
3.ÔÚ·¿ªµÄÉèÖÃÎļþÖУ¬²éÕÒ” [credential]”£¬È»ºóÔٴΰ´”i”¼üÒÔ½øÈë±à¼Ä£Ê½¡£
4.¸ü¸Ä”credential”±êʶ·ûϵÄÓû§ÃûºÍÃÜÂ룺
username=your_username password=your_new_password
µÇ¼ºó¸´ÖÆ
5.°´Ï”Esc”¼üÍ˳ö±à¼Ä£Ê½£¬È»ºóÊäÈë”:wq”ÒÔÉúÑĸü¸Ä²¢Í˳ö¡£
ÏÖÔÚÄãÒѾ֪µÀÁËÔõÑùÐÞ¸ÄGithub»òGitlabÕË»§ÃÜÂëÒÔ¼°ÍâµØGitµÄÉèÖÃÎļþÖеÄÃÜÂëÁË¡£¼ÇµÃÒª°´ÆÚ¸ü¸ÄÄãµÄÃÜÂ룬ÒÔÌá¸ßÄãµÄÕË»§ºÍ´úÂëµÄÇå¾²ÐÔ¡£
ÒÔÉϾÍÊÇÔõÑùÔÚgitÖÐÐÞ¸ÄÕË»§ÃÜÂëµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡