{"id":2671,"date":"2022-09-23T04:30:57","date_gmt":"2022-09-22T20:30:57","guid":{"rendered":"https:\/\/guerilla.ddns.net\/wp\/?p=2671"},"modified":"2025-08-23T18:17:33","modified_gmt":"2025-08-23T10:17:33","slug":"configure-your-git-username-email-on-linux","status":"publish","type":"post","link":"https:\/\/guerilla.ddns.net\/wp\/?p=2671","title":{"rendered":"configure your git username\/email on linux"},"content":{"rendered":"<p><strong>To set your global username\/email configuration:<\/strong><\/p>\n<ol>\n<li>Set your username:\n<pre><code class=\"language-bash\" data-line=\"\">git config --global user.name &quot;FIRST_NAME LAST_NAME&quot;<\/code><\/pre>\n<\/li>\n<li>Set your email address:\n<pre><code class=\"language-bash\" data-line=\"\">git config --global user.email &quot;MY_NAME@example.com&quot;<\/code><\/pre>\n<\/li>\n<\/ol>\n<p><strong>To set repository-specific username\/email configuration:<\/strong><\/p>\n<ol>\n<li>In a terminal, change into the repository directory.<\/li>\n<li>Set your username:\n<pre><code class=\"language-bash\" data-line=\"\">git config user.name &quot;FIRST_NAME LAST_NAME&quot;<\/code><\/pre>\n<\/li>\n<li>Set your email address:\n<pre><code class=\"language-bash\" data-line=\"\">git config user.email &quot;MY_NAME@example.com&quot;<\/code><\/pre>\n<\/li>\n<li>Verify your configuration by displaying your configuration file:\n<pre><code class=\"language-bash\" data-line=\"\">cat .git\/config<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<br \/>\nSource: <a href=\"https:\/\/support.atlassian.com\/bitbucket-cloud\/docs\/configure-your-dvcs-username-for-commits\/\" target=\"_blank\" rel=\"noopener\"><em>Configure your DVCS username for commits | Bitbucket Cloud | Atlassian Support<\/em><\/a><br \/>\n&nbsp;<\/p>\n<p>#git #linux<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To set your global username\/email configuration: Set yo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[179],"tags":[63],"class_list":["post-2671","post","type-post","status-publish","format-standard","hentry","category-infotech","tag-linux"],"_links":{"self":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2671"}],"version-history":[{"count":7,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2671\/revisions"}],"predecessor-version":[{"id":3435,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2671\/revisions\/3435"}],"wp:attachment":[{"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guerilla.ddns.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}