<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Git_fetch-rebase</id>
	<title>Git fetch-rebase - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Git_fetch-rebase"/>
	<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Git_fetch-rebase&amp;action=history"/>
	<updated>2026-04-20T19:32:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=Git_fetch-rebase&amp;diff=235&amp;oldid=prev</id>
		<title>Razzi: Created page with &quot;I realized I&#039;d been doing a set of manual commands when a coworker called it out.  From a feature branch, I&#039;d switch back to the main branch, pull, then switch back to the fea...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Git_fetch-rebase&amp;diff=235&amp;oldid=prev"/>
		<updated>2022-03-24T06:12:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;I realized I&amp;#039;d been doing a set of manual commands when a coworker called it out.  From a feature branch, I&amp;#039;d switch back to the main branch, pull, then switch back to the fea...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I realized I&amp;#039;d been doing a set of manual commands when a coworker called it out.&lt;br /&gt;
&lt;br /&gt;
From a feature branch, I&amp;#039;d switch back to the main branch, pull, then switch back to the feature branch and rebase the main branch.&lt;br /&gt;
&lt;br /&gt;
 git switch main&lt;br /&gt;
 git pull&lt;br /&gt;
 git switch -&lt;br /&gt;
 git rebase main&lt;br /&gt;
&lt;br /&gt;
However this can be done without switching branches:&lt;br /&gt;
&lt;br /&gt;
 git fetch origin&lt;br /&gt;
 git rebase origin/main&lt;br /&gt;
&lt;br /&gt;
and I put it in my gitconfig as a single command:&lt;br /&gt;
&lt;br /&gt;
 [alias]&lt;br /&gt;
  	fetch-rebase = &amp;quot;!git fetch origin &amp;amp;&amp;amp; git rebase origin/$(git base)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and gave it a fish abbr:&lt;br /&gt;
&lt;br /&gt;
 abbr -a fr git fetch-rebase&lt;br /&gt;
&lt;br /&gt;
Now I can run&lt;br /&gt;
&lt;br /&gt;
 puppet $ git fetch-rebase&lt;br /&gt;
 Successfully rebased and updated refs/heads/T301565-karapace.&lt;/div&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
</feed>