{"id":639,"date":"2021-06-07T07:24:18","date_gmt":"2021-06-07T07:24:18","guid":{"rendered":"https:\/\/info.juliusgoh.life\/?p=639"},"modified":"2021-06-07T07:29:03","modified_gmt":"2021-06-07T07:29:03","slug":"git-rebase-to-ammend-old-commits-author-comments","status":"publish","type":"post","link":"https:\/\/info.juliusgoh.life\/?p=639","title":{"rendered":"Git Rebase to ammend old commit&#8217;s author \/ comments"},"content":{"rendered":"<p>1. Run this code to start git rebase<\/p>\n<pre>$ git rebase -i {COMMIT_HASH}<\/pre>\n<p>2. Change the lines that you want to edit from &#8220;pick&#8221; to &#8220;edit&#8221;<br \/>\n3.<\/p>\n<pre>$ git commit --amend --author=\"Author Name &lt;email@address.com&gt;\"<\/pre>\n<p>4.<\/p>\n<pre>$ git rebase --continue<\/pre>\n<p>5. Use code below to update your origin with the updated commits.<\/p>\n<pre> $ git push -f<\/pre>\n<p>Ref : <a href=\"https:\/\/stackoverflow.com\/questions\/3042437\/how-to-change-the-commit-author-for-one-specific-commit\">https:\/\/stackoverflow.com\/questions\/3042437\/how-to-change-the-commit-author-for-one-specific-commit<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Run this code to start git rebase $ git rebase -i {COMMIT_HASH} 2. Change the lines that you want to edit from &#8220;pick&#8221; to &#8220;edit&#8221; 3. $ git commit &#8211;amend &#8211;author=&#8221;Author Name &lt;email@address.com&gt;&#8221; 4. $ git rebase &#8211;continue 5. Use code below to update your origin with the updated commits. $ git push -f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":302,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/posts\/639"}],"collection":[{"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=639"}],"version-history":[{"count":7,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/posts\/639\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/posts\/639\/revisions\/646"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=\/wp\/v2\/media\/302"}],"wp:attachment":[{"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/info.juliusgoh.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}