<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Magit on Ken Huang</title>
    <link>https://blog.kenhuang.io/tags/magit/</link>
    <description>Recent content in Magit on Ken Huang</description>
    <generator>Hugo</generator>
    <language>en</language>
    <managingEditor>whatacold@gmail.com (Ken Huang)</managingEditor>
    <webMaster>whatacold@gmail.com (Ken Huang)</webMaster>
    <lastBuildDate>Sun, 03 Oct 2021 21:42:26 +0800</lastBuildDate>
    <atom:link href="https://blog.kenhuang.io/tags/magit/rss.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How To Revert a Series of Git Commits?</title>
      <link>https://blog.kenhuang.io/blog/2019-09-24-how-to-revert-a-series-of-commits-with-git/</link>
      <pubDate>Tue, 24 Sep 2019 23:14:00 +0800</pubDate><author>whatacold@gmail.com (Ken Huang)</author>
      <guid>https://blog.kenhuang.io/blog/2019-09-24-how-to-revert-a-series-of-commits-with-git/</guid>
      <description>&lt;p&gt;&#xA;Sometimes, I need to revert a series of commits that I&amp;#39;ve already pushed, doing a git hard &lt;a href=&#34;https://git-scm.com/docs/git-reset&#34;&gt;reset&lt;/a&gt; (&lt;code class=&#34;verbatim&#34;&gt;git reset --hard&lt;/code&gt;) is not an option, as someone may already have new commits based on mine.&lt;/p&gt;&#xA;&lt;p&gt;&#xA;For example, assume that I&amp;#39;ve made a few commits like below:&lt;/p&gt;&#xA;&lt;pre class=&#34;example&#34;&gt;&#xA;65a2c62 * commit 10&#xA;25cad43 * commit 9&#xA;72ad583 * commit 8&#xA;ceebf9a * commit 7&#xA;acf8a11 * commit 6&#xA;28d526f * commit 5&#xA;63af1e2 * commit 4&#xA;982c71c * commit 3&#xA;0fb4c2d * commit 2&#xA;acf9da1 * commit 1&#xA;b5f9933 * commit 0&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;&#xA;For whatever reason, I need to &amp;#34;drop&amp;#34; the changes made by commit 6 to commit 10, that is, go back to &amp;#34;commit 5&amp;#34; without deleting these commits.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
