<?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: Aniket</title>
    <description>The latest articles on DEV Community by Aniket (@aniketsy).</description>
    <link>https://dev.to/aniketsy</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%2F3954908%2Ff77f310d-d2fd-411a-adf8-2754585e84ef.jpeg</url>
      <title>DEV Community: Aniket</title>
      <link>https://dev.to/aniketsy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aniketsy"/>
    <language>en</language>
    <item>
      <title>Git rebase conflicts are painful. Let `grebase` fix them for you. 😉</title>
      <dc:creator>Aniket</dc:creator>
      <pubDate>Wed, 27 May 2026 20:29:31 +0000</pubDate>
      <link>https://dev.to/aniketsy/git-rebase-conflicts-are-painful-let-grebase-fix-them-for-you-1m5d</link>
      <guid>https://dev.to/aniketsy/git-rebase-conflicts-are-painful-let-grebase-fix-them-for-you-1m5d</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-05-21"&gt;GitHub Finish-Up-A-Thon Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;grebase&lt;/strong&gt; — a terminal CLI that makes git rebase something you stop dreading.&lt;/p&gt;

&lt;p&gt;Every developer who contributes to open source knows the moment: a reviewer comments &lt;em&gt;"could you rebase main?"&lt;/em&gt; and you quietly panic. Conflict markers, unrelated commits, force push at the wrong time, it's a mess every time.&lt;/p&gt;

&lt;p&gt;So I built grebase to handle the painful parts automatically.&lt;br&gt;
I've built a tool that will make our rebase process smooth . I named it &lt;code&gt;grebase&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Here is what it does:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fetches latest from upstream and detects your target branch&lt;/li&gt;
&lt;li&gt;Starts the rebase and monitors every conflict as it happens&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-resolves mechanical conflicts&lt;/strong&gt; — import ordering, lockfile churn, whitespace differences, duplicate blocks, documentation changes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Asks you for semantic conflicts&lt;/strong&gt; — shows both sides clearly and lets you decide: keep mine, take theirs, keep both, or edit inline&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inline terminal editor&lt;/strong&gt; — when a conflict needs manual work, you edit right there in the terminal without opening any file or IDE&lt;/li&gt;
&lt;li&gt;Audit log so you know exactly what grebase decided and why&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--dry-run&lt;/code&gt; to preview everything before it touches your branch&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--safe-only&lt;/code&gt; to auto-resolve only what is mathematically safe&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When it is done, your branch is cleanly rebased and ready to push.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pipx &lt;span class="nb"&gt;install &lt;/span&gt;grebase
grebase main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/Aniketsy/grebase" rel="noopener noreferrer"&gt;https://github.com/Aniketsy/grebase&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;(typeshed) aniket@DESKTOP-074O80J:/mnt/d/typeshed/typeshed$ grebase&lt;br&gt;
✓ Repository detected&lt;br&gt;
✓ Current branch: fix-15012&lt;br&gt;
✓ Target branch: origin/main&lt;br&gt;
✓ Remote: origin&lt;br&gt;
i Incoming changes summary:&lt;br&gt;
stubs/colorful/colorful/__init__.pyi | 59 ++++++++++++++++++++++++++++++++++++&lt;br&gt;
 1 file changed, 59 insertions(+)&lt;br&gt;
✓ Fetch completed&lt;br&gt;
✓ Rebase successful&lt;br&gt;
(typeshed) aniket@DESKTOP-074O80J:/mnt/d/typeshed/typeshed$&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Comeback Story
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;This project started just before sometime when i got stuck to one of my PRs to the NVIDIA NeMo/RL repository because I needed to rebase main, and like many times before, I ended up making a mess of it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;from there I decided why not lets make a tool to make this rebase process smooth for everyone, specially beginners like me who face difficulty.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My Experience with GitHub Copilot
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It really helped me to build my project, i took help in reviewing , even implementing new feature and fixing existing bugs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;overall great for moving fast on the parts you understand well, less useful as a substitute for thinking on the parts that are genuinely hard.&lt;/p&gt;

&lt;p&gt;Thank you for reading my post, i'd be happy to receive feedback on grebase.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
    </item>
  </channel>
</rss>
