githubÓû§ÃûÔõô¸ü¸Ä
githubÊÇÈ«Çò×î´óµÄ¿ªÔ´´úÂëÍйÜƽ̨£¬ËüÔÊÐí¿ª·¢ÕßÔÚÒ»¸öƽ̨ÉÏ´æ´¢¡¢¹²ÏíºÍÐ×÷¿ª·¢´úÂë¡£ÔÚʹÓÃgithubʱ£¬Ã¿¸öÓû§¶¼ÓÐÒ»¸öÆæÒìµÄÓû§ÃûÓëÖ®¶ÔÓ¦¡£ÓÐʱ¼ä£¬ÎÒÃÇ¿ÉÄÜÐèÒª¸ü¸ÄgithubÓû§Ãû£¬ºÃ±ÈÓÉÓÚÓû§Ãû²»·ó¸öÐÔ»¯£¬»òÕßÓÉÓÚȨÍþÐÔ¸ü¸ßµÄÓû§ÃûÒѾ±»×¢²á¡£
ÄÇô£¬ÔõÑù¸ü¸ÄGitHubÓû§ÃûÄØ£¿ÏÂÃ潫Ϊ¸÷ÈËÏÈÈÝÏêϸµÄ°ì·¨¡£
µÚÒ»²½£ºµÇ¼GitHubÕË»§
ÔÚ¸ü¸ÄGitHubÓû§Ãû֮ǰ£¬Ê×ÏÈÐèÒªµÇ¼×Ô¼ºµÄGitHubÕË»§¡£ÈôÊÇûÓÐÕË»§£¬¿ÉÒÔÔÚGitHub¹ÙÍøÉÏ×¢²áÒ»¸ö£¬²Ù×÷ºÜÊǼòÆÓ¡£
µÚ¶þ²½£º½øÈëSettings
ÔڵǼÕË»§Ö®ºó£¬µã»÷ÓÒÉϽǵÄÍ·Ïñ£¬Ñ¡Ôñ¡°Settings¡±¡£
µÚÈý²½£ºÐÞ¸ÄÓû§Ãû
ÔÚ¡°Settings¡±Ò³ÃæÖУ¬µã»÷¡°Account¡±Ñ¡Ï£¬È»ºóÕÒµ½¡°Username¡±²¢µã»÷¡°Change username¡±°´Å¥¡£½Ó×ÅÊäÈëеÄÓû§Ãû£¬²¢µã»÷¡°Update username¡±¼´¿ÉÍê³É¸ü¸Ä¡£
ÐèҪעÖصÄÊÇ£¬GitHubÓû§ÃûÖ»ÄÜ°üÀ¨×Öĸ¡¢Êý×Ö¡¢ÆÆÕۺźÍÏ»®Ïߣ¬ÇÒ±ØÐèÒÔ×Öĸ¿ªÍ·£¬³¤¶È²»¿É¶ÌÓÚ2¸ö×Ö·û»ò³¤ÓÚ39¸ö×Ö·û¡£ÁíÍ⣬ÈôÊÇеÄÓû§ÃûºÍÆäËûÓû§µÄÓû§ÃûÏàͬ£¬GitHub»á×Ô¶¯ÌáÐѲ»¿ÉʹÓøÃÓû§Ãû¡£
µÚËIJ½£º¸üÐÂÍâµØ¿ÍÕ»
ÈôÊÇÎÒÃÇʹÓÃGitÖÎÀíÍâµØ¿ÍÕ»²¢ÓëGitHub¾ÙÐÐͬ²½£¬¸ü¸ÄGitHubÓû§ÃûºóÐèÒª¸üÐÂÍâµØ¿ÍÕ»£¬²»È»»á·ºÆðͬ²½Ê§°ÜµÄÇéÐΡ£
¸üÐÂÍâµØ¿ÍÕ»µÄ²Ù×÷ºÜÊǼòÆÓ£¬Ö»ÐèÒªÔÚÖնˣ¨Terminal£©ÖÐʹÓÃÒÔÏÂÏÂÁî¼´¿É£º
git remote set-url origin git@github.com:NewUserName/NewRepo.git
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬¡°NewUserName¡±ÊÇÎÒÃÇеÄGitHubÓû§Ãû£¬¡°NewRepo¡±ÊÇÎÒÃÇÖ´ÐÐÏÂÁîʱËùÔÚµÄÍâµØ¿ÍÕ»Ãû³Æ¡£
ÐèҪעÖصÄÊÇ£¬ÐèÒª½«ÔÓеġ°git@github.com:OldUserName/OldRepo.git¡±Öеġ°OldUserName¡±¸ÄΪеÄÓû§Ãû£¬²»È»¾ÍÎÞ·¨ÔÚGitHubÉÏÕý³£Ìá½»½ÓÂëÁË¡£
×ܽá
¸ü¸ÄGitHubÓû§ÃûÊÇÒ»¸ö¼òÆÓµÄÀú³Ì£¬Ö»ÐèÒªµÇ¼GitHubÕË»§£¬½øÈë¡°Settings¡±Ò³Ã棬ÐÞ¸ÄÓû§Ãû¼´¿É¡£ÈôÊÇʹÓÃGitÖÎÀíÍâµØ¿ÍÕ»£¬»¹ÐèÒª¸üÐÂÍâµØ¿ÍÕ»¡£ËäÈ»£¬ÎÒÃDz»½¨ÒéƵÈÔ¸ü¸ÄGitHubÓû§Ãû£¬ÓÉÓÚÕâÑù»á¸øÆäËû¿ª·¢Õß´øÀ´ºÜ´óµÄÀ§ÈÅ¡£Ö»ÓÐÔÚÐëÒªµÄÇéÐÎÏ£¬²ÅÓ¦¸Ã˼Á¿¸ü¸ÄÓû§Ãû¡£
ÒÔÉϾÍÊÇgithubÓû§ÃûÔõô¸ü¸ÄµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡