{"id":164365,"date":"2020-10-06T13:36:23","date_gmt":"2020-10-06T05:36:23","guid":{"rendered":"http:\/\/4563.org\/?p=164365"},"modified":"2020-10-06T13:36:23","modified_gmt":"2020-10-06T05:36:23","slug":"git-%e8%87%aa%e5%8a%a8%e6%8f%90%e4%ba%a4%e8%84%9a%e6%9c%ac-push-%e5%90%8e%e6%98%be%e7%a4%ba%e7%9a%84%e6%98%af%e5%88%ab%e4%ba%ba%e7%9a%84%e5%b8%90%e5%8f%b7%ef%bc%88%e7%a1%ae%e5%ae%9a%e9%82%ae%e7%ae%b1","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=164365","title":{"rendered":"git \u81ea\u52a8\u63d0\u4ea4\u811a\u672c push \u540e\u663e\u793a\u7684\u662f\u522b\u4eba\u7684\u5e10\u53f7\uff08\u786e\u5b9a\u90ae\u7bb1\u4e0d\u662f\u90a3\u4e2a\u4eba\u7684\uff09"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  git \u81ea\u52a8\u63d0\u4ea4\u811a\u672c push \u540e\u663e\u793a\u7684\u662f\u522b\u4eba\u7684\u5e10\u53f7\uff08\u786e\u5b9a\u90ae\u7bb1\u4e0d\u662f\u90a3\u4e2a\u4eba\u7684\uff09               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e00\u5f00\u59cb\u65e0\u804a\u5199\u4e86\u4e2a\u811a\u672c\uff0c\u672c\u5730\u6d4b\u8bd5\u4e86\u4e00\u4e0b\uff0c\u53ef\u4ee5\u81ea\u52a8\u63d0\u4ea4\u4ee3\u7801\u3002\u968f\u540e\u4e22\u5230\u670d\u52a1\u5668\u4e0a\u3002\u4eca\u5929\u4e00\u770b git log\uff0c\u65e5\u5fd7\u663e\u793a\uff1aAuthor: ubuntu <span data-cfemail=\"94e1f6e1fae0e1d4f8fbf7f5f8fcfbe7e0baf8fbf7f5f8f0fbf9f5fdfa\">[email&#160;protected]<\/span> \uff0c\u968f\u540e\u68c0\u67e5 git config &#8211;list\uff0cuser.name \u548c user.email \u90fd\u662f\u6211\u81ea\u5df1\u7684\u6ca1\u9519\uff0c\u90a3\u5230\u6b64\u6211\u89c9\u5f97\u53ef\u80fd\u811a\u672c\u54ea\u91cc\u4e0d\u5b8c\u5584\u3002<\/p>\n<p>\u91cd\u70b9\u6765\u4e86\uff01\uff01\uff01<\/p>\n<p>\u6211\u767b\u5f55 github \u770b\u7684\u65f6\u5019\uff0c\u8fd9\u4e2a\u63d0\u4ea4\u7684\u5934\u50cf\u7adf\u7136\u662f\u8def\u98de\uff1f\uff1f\u8fd8\u662f\u4e2a\u56fd\u4eba\uff0c\u4e00\u770b\u8fd9\u4e2a\u4eba\u7684\u8d44\u6599\u5199\u7684\u662f [email&#160;protected] \u3002\u6211\u5728\u60f3\uff0c\u96be\u9053\u8fd9\u4e2a\u4eba\u7684 github \u6ce8\u518c\u90ae\u7bb1\u662f [email&#160;protected] \uff1f\u4e0d\u53ef\u601d\u8bae\u3002\u3002\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>18<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3604912\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             [Imgur]( <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20201007_5f7ddf4cb4024.png\" rel=\"noreferrer\" alt=\"git \u81ea\u52a8\u63d0\u4ea4\u811a\u672c push \u540e\u663e\u793a\u7684\u662f\u522b\u4eba\u7684\u5e10\u53f7\uff08\u786e\u5b9a\u90ae\u7bb1\u4e0d\u662f\u90a3\u4e2a\u4eba\u7684\uff09\">)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604913\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ericwood067 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             []( https:\/\/docs.github.com\/en\/<span data-cfemail=\"16706473733b6664793b6273777b567a7762736562\">[email&#160;protected]<\/span>\/github\/committing-changes-to-your-project\/why-are-my-commits-linked-to-the-wrong-user)<\/p>\n<p>Commits are linked to another user<br \/>If your commits are linked to another user, that means the user has added the email address in your local Git configuration settings to their GitHub account. In this case, you can change the email in your local Git configuration settings and add the new email address to your GitHub account to link future commits to your account.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604914\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ericwood067 \u90a3\u4ed6\u628a [email&#160;protected]main \u52a0\u5230\u4e86\u4ed6\u8d26\u6237\u91cc\uff1f\u8fd9\u3002\u3002\u597d\u50cf\u8bf4\u4e0d\u901a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604915\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ericwood067 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @DeathWing \u5e94\u8be5\u662f\u8fd9\u6837\u7684\uff0cgithub \u7684 settings \u91cc\u6709\u4e00\u4e2a Emails\uff0c\u91cc\u9762\u6709\u4e00\u4e2a Add email address \u7684\u9009\u9879\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604916\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kr98 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ericwood067 \u5173\u952e\u662f\u4ed6\u600e\u4e48\u901a\u8fc7\u90ae\u7bb1\u9a8c\u8bc1\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604917\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ODD10 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7528 mac \u548c ios \u63d0\u4ea4\uff0c\u5934\u50cf\u4e0d\u4e00\u6837\u3002<br \/>\u4e00\u4e2a\u662f\u65e7\u7684\u5934\u50cf\uff0c\u4e00\u4e2a\u662f\u65b0\u7684\u5934\u50cf\u3002<\/p>\n<p>\u7528\u7684 vscode \u548c working copy                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604918\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sola97 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u9047\u5230\u8fc7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604919\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ODD10 \u4f46\u662f\u7528\u6237\u662f\u4e00\u4e2a\u7528\u6237\u5427\uff1f\u6211\u8fd9\u4e2a\u8def\u98de\u5934\u50cf\u662f\u53ef\u4ee5\u76f4\u63a5\u5230\u53e6\u4e00\u4e2a\u5e10\u53f7\u7684= =\u54c8\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604920\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @sola97 \u548c\u6211\u4e00\u6a21\u4e00\u6837\u7684\u60c5\u51b5\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604921\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Kr98 \u6211\u89c9\u5f97\u5e94\u8be5\u4e0d\u662f\u8def\u98de\u5c0f\u54e5\u7ed1\u4e86\u90a3\u4e2a\u90ae\u7bb1=\u3002=                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604922\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Exin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7fa1\u6155\u4f60\u4eec\u6709\u5934\u50cf\u7684\uff0c\u6211\u603b\u662f\u663e\u793a\u4e0d\u51fa\u5934\u50cf\u6765                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604923\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BIAOXYZ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u628a\u672c\u5730\u6240\u6709\u7684 config \u90fd\u6838\u5bf9\u4e00\u4e0b\uff08 git config -l + &#8211;system\/&#8211;global\/&#8211;local \uff09\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604924\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lxilu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u524d\u8d34 Github \u5947\u8469\u9879\u76ee\u63d0\u5230\u4f2a\u9020\u4f5c\u8005\u6216\u53ef\u53c2\u8003                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604925\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lxilu \u641c\u4e86\u4e00\u4e0b \u6ca1\u600e\u4e48\u627e\u5230~\u65b9\u4fbf\u7684\u8bdd \u80fd\u4e0d\u80fd\u8d34\u4e00\u4e0b\u94fe\u63a5 \u6211\u53bb\u89c2\u6469\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604926\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Exin &#8211; -\uff1f\u4e3a\u5565\u663e\u793a\u4e0d\u51fa\u6765                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604927\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : DeathWing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @BIAOXYZ \u8fd9\u4e2a\u4e0d\u662f\u4e3b\u8981\u95ee\u9898\uff0c\u4e3b\u8981\u662f\u811a\u672c commit \u7684\u65f6\u5019\u7528\u7684 [email&#160;protected]\uff0c\u800c\u8fd9\u4e2a\u90ae\u7bb1\u5728 github \u4e0a\u5bf9\u5e94\u7684\u662f\u8def\u98de\u5934\u50cf\u3002<br \/>\u53e6\u5916\uff0cconfig \u8fd9\u4e2a\u7b2c\u4e00\u65f6\u95f4\u786e\u8ba4\u8fc7\u4e86\uff0c\u9664\u4e86 system \u6ca1\u6709\u8bbe\u7f6e\u5916\u5176\u4ed6\u90fd\u662f\u6211\u81ea\u5df1\u3002\u6211\u540e\u6765\u63a8\u6d4b\u662f\u56e0\u4e3a\u5728\u6211\u7684\u73af\u5883\u4e0b\u4f7f\u7528 subprocess \u8bfb\u53d6\u4e0d\u5230 user config\uff0c\u6240\u4ee5\u6211\u5728\u811a\u672c\u91cc\u6bcf\u6b21\u63d0\u4ea4\u524d\u6dfb\u52a0\u4e86\u4e00\u4e0b username \u548c Email \u5c31\u641e\u5b9a\u4e86\u3002\u4e3b\u8981\u662f\u8def\u98de\u8fd9\u4e2a\u592a\u8be1\u5f02\u4e86=\u3002=                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604928\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yanqiyu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u8bae\u53d1\u90ae\u4ef6\u76f4\u63a5\u8bf7\u6559                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3604929\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lxilu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u597d\u50cf\u6ca1\u7528\u2026\u2026 https:\/\/github.com\/jayphelps\/git-blame-someone-else                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>git \u81ea\u52a8\u63d0\u4ea4\u811a\u672c push \u540e&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/164365"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=164365"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/164365\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=164365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=164365"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=164365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}