<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: nprojectcharles</title>
    <description>The latest articles on DEV Community by nprojectcharles (@nprojectcharles).</description>
    <link>https://dev.to/nprojectcharles</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F853673%2Ffa3e86ba-68ee-436d-b912-a0e7469be78c.jpg</url>
      <title>DEV Community: nprojectcharles</title>
      <link>https://dev.to/nprojectcharles</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nprojectcharles"/>
    <language>en</language>
    <item>
      <title>Fix Github PR by removing unwanted commits</title>
      <dc:creator>nprojectcharles</dc:creator>
      <pubDate>Wed, 15 Jun 2022 08:46:00 +0000</pubDate>
      <link>https://dev.to/nprojectcharles/fix-github-pr-by-removing-unwanted-commits-4ien</link>
      <guid>https://dev.to/nprojectcharles/fix-github-pr-by-removing-unwanted-commits-4ien</guid>
      <description>&lt;p&gt;Step-1: Make sure your working directory is clean (commit or stash your current changes).&lt;/p&gt;

&lt;p&gt;Step-2: One can use the git-rebase command to easily make changes to one’s history.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ git rebase -i HEAD~n # here n will for number of commits you need to view&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now git rebase command will get the following in your editor&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mnmBrDHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sc7ozlqknjqzf5myy94v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mnmBrDHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sc7ozlqknjqzf5myy94v.png" alt="Image description" width="837" height="741"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step-3: Change pick to drop in order to “drop” the commit. Don't touch anything else. Delete a commit by deleting that particular line.&lt;/p&gt;

&lt;p&gt;Step-4: Save and Exit (Ctrl + X and to save "y")&lt;/p&gt;

&lt;p&gt;Step -5: Finally Push the changes by using the below command to update your master and the commit will be removed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git push origin -branch-name-here --force&lt;/code&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>github</category>
    </item>
  </channel>
</rss>
