Ôõô¾ÙÐÐGitÓÊÏäµÄÐÞ¸Ä
git ÊÇÒ»¿î¾µäµÄÂþÑÜʽ°æ±¾¿ØÖÆϵͳ£¬±»ÆÕ±éÓ¦ÓÃÓÚÈí¼þ¿ª·¢¡£ÔÚʹÓà git Àú³ÌÖУ¬Ðí¶àÈË¿ÉÄÜ»áÓöµ½ÐèÒªÐÞ¸ÄÓÊÏäµÄÇéÐΡ£±¾ÆªÎÄÕ½«Ìṩһ¸ö¼òÆÓµÄÒªÁ죬×ÊÖú¶ÁÕß¾ÙÐÐ git ÓÊÏäµÄÐ޸ġ£
Ê×ÏÈ£¬ÐèÒªÖªµÀ Git ʹÓÃÓÊÏäÀ´¼Í¼°æ±¾¿ØÖÆÐÅÏ¢¡£Òò´Ë£¬ÄãÐèҪȷ¶¨ÄãÒªÐ޸ĵÄÊÇÄĸöÓÊÏä¡£¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁî¾ÙÐÐÅÌÎÊ£º
$ git config user.email
µÇ¼ºó¸´ÖÆ
Ö´ÐÐÍê¸ÃÏÂÁîºó£¬¿ÉÒÔ»ñÊÊÄ¿½ñ Git ÓÊÏä¡£ÈôÊÇÐèÒªÐ޸ĵÄÊÇÄ¿½ñÓÊÏ䣬¿ÉÒÔÌø¹ý´Ë°ì·¨¡£
½ÓÏÂÀ´£¬ÐèҪʹÓÃÒÔÏÂÏÂÁî¸ü¸Ä Git ÓÊÏ䣺
$ git config --global user.email "youremail@example.com"
µÇ¼ºó¸´ÖÆ
ÔÚÖ´ÐиÃÏÂÁîʱ£¬½« “youremail@example.com” Ì滻ΪÄãÏëҪʹÓõÄÐÂÓÊÏäµØµã¼´¿É¡£
ÐèҪעÖصÄÊÇ£¬ÈôÊÇÄãÐèҪΪ²î±ðµÄ Git ÏîĿʹÓòî±ðµÄÓÊÏ䣬¿ÉÒÔÔÚÏîÄ¿Îļþ¼ÐÖÐʹÓÃÒÔÏÂÏÂÁî¾ÙÐоֲ¿ÉèÖãº
$ git config user.email "youremail@example.com"
µÇ¼ºó¸´ÖÆ
ͨ¹ýÕâ¸öÏÂÁîÉèÖõÄÓÊÏäÖ»»áÕë¶ÔÄ¿½ñÏîÄ¿ÉúЧ¡£
±ðµÄ£¬ÈôÊÇÄãÒÅÍüÁËÒѾʹÓÃµÄ Git ÓÊÏäµØµã£¬Ò²¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÅÌÎÊ£º
$ git log --oneline --decorate --all --graph
µÇ¼ºó¸´ÖÆ
ͨ¹ýÕâ¸öÏÂÁî¿ÉÒÔ»ñµÃÄãËùÓÐÌá½»µÄ¼Í¼ÒÔ¼°Ê¹ÓõÄÓÊÏäµØµã¡£
×ÜÖ®£¬Git ÓÊÏäµÄÐ޸ĺÜÊǼòÆÓ¡£Ö»ÐèҪʹÓÃÒ»ÐÐÏÂÁî¾Í¿ÉÒԸ㶨¡£ÈôÊÇÐèÒªµÄ»°£¬Ò²¿ÉÒÔÔÚÍâµØÏîÄ¿ÖоÙÐоֲ¿µÄÉèÖá£ÐÅÍÐͨ¹ý±¾ÆªÎÄÕµÄÏÈÈÝ£¬¶ÁÕßÃÇ¿ÉÒÔÇáËɵؾÙÐÐ Git ÓÊÏäµÄÐ޸ġ£
ÒÔÉϾÍÊÇÔõô¾ÙÐÐGitÓÊÏäµÄÐ޸ĵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡