{"id":2242,"date":"2018-05-03T00:17:31","date_gmt":"2018-05-03T04:17:31","guid":{"rendered":"http:\/\/www.rexfeng.com\/blog\/?p=2242"},"modified":"2018-05-03T00:17:31","modified_gmt":"2018-05-03T04:17:31","slug":"git-config-email-string","status":"publish","type":"post","link":"https:\/\/www.rexfeng.com\/blog\/2018\/05\/git-config-email-string\/","title":{"rendered":"Git Config Email String"},"content":{"rendered":"<p>This is about a simple problem that is obvious after the fact. I was having an issue with my commits on github.com not being linked to my github account. It seemed like I had set everything up (git email configured locally &amp; e-mail set in my github.com account), but it wasn&#8217;t working.<\/p>\n<p>On a mac, you probably know you can set your git user e-mail this way:<\/p>\n<pre class=\"command-line\"><span class=\"command\">git config --global user.email name@domain.com<\/span><\/pre>\n<p>Following the github guide (<a href=\"https:\/\/help.github.com\/articles\/setting-your-commit-email-address-in-git\/\">https:\/\/help.github.com\/articles\/setting-your-commit-email-address-in-git\/<\/a>), I included quotes when setting my git config email.<\/p>\n<pre class=\"command-line\"><span class=\"command\">git config --global user.email \"<em>name@domain.com<\/em>\"\r\n<\/span><\/pre>\n<p>It turns out that was a mistake for me since my commits were being associated with\u00a0<em>&#8220;name@domain.com&#8221;<\/em> instead of\u00a0<em>name@domain.com<\/em>. Note: the inclusion vs exclusion of quote characters.<\/p>\n<p>After running the git config command above <em>without quotes<\/em>, I was able to properly link my commits on github to my github user profile.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is about a simple problem that is obvious after the fact. I was having an issue with my commits on github.com not being linked to my github account. It seemed like I had set everything up (git email configured locally &amp; e-mail set in my github.com account), but it wasn&#8217;t working. On a mac, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1029],"tags":[1391,485,338,1030],"class_list":["post-2242","post","type-post","status-publish","format-standard","hentry","category-programming","tag-config","tag-email","tag-git","tag-github"],"_links":{"self":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/comments?post=2242"}],"version-history":[{"count":3,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2242\/revisions"}],"predecessor-version":[{"id":2245,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/2242\/revisions\/2245"}],"wp:attachment":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/media?parent=2242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/categories?post=2242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/tags?post=2242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}