<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Github on Seobaeksol Blog</title><link>https://seobaeksol.github.io/tags/github/</link><description>Recent content in Github on Seobaeksol Blog</description><image><title>Seobaeksol Blog</title><url>https://seobaeksol.github.io/images/profile.jpg</url><link>https://seobaeksol.github.io/images/profile.jpg</link></image><generator>Hugo -- 0.147.0</generator><language>en</language><lastBuildDate>Wed, 30 Apr 2025 00:34:26 +0900</lastBuildDate><atom:link href="https://seobaeksol.github.io/tags/github/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Fix Wrong Git Author Information in Commits</title><link>https://seobaeksol.github.io/posts/fix-wrong-git-author/</link><pubDate>Wed, 30 Apr 2025 00:34:26 +0900</pubDate><guid>https://seobaeksol.github.io/posts/fix-wrong-git-author/</guid><description>&lt;blockquote>
&lt;p>⚡ TL;DR&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git rebase -i HEAD~N
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>or&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git rebase -i &amp;lt;starting-commit-hash&amp;gt;^
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git commit --amend --author&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;Name &amp;lt;email&amp;gt;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git rebase --continue
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>git push --force
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>⚠️ &lt;strong>Warning:&lt;/strong> Modifying commits that have already been pushed to a remote repository can cause history conflicts with collaborators. Use this only when working alone!&lt;/p>&lt;/blockquote>
&lt;hr>
&lt;h2 id="-problem-incorrect-git-author-information">📝 Problem: Incorrect Git Author Information&lt;/h2>
&lt;p>When working on the same GitHub repository across different computers (like work and personal), you might find that your commit author information gets mixed up.&lt;br>
In my case, I had &lt;strong>set my company account&amp;rsquo;s name and email in the global configuration&lt;/strong> for convenience, and that&amp;rsquo;s where the trouble began.&lt;/p></description></item></channel></rss>