<?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: Jahanzeb Nawaz</title>
    <description>The latest articles on DEV Community by Jahanzeb Nawaz (@mrjahanzeb).</description>
    <link>https://dev.to/mrjahanzeb</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%2F1754618%2F357abf88-073e-471a-97d5-d53ef9bb7675.jpg</url>
      <title>DEV Community: Jahanzeb Nawaz</title>
      <link>https://dev.to/mrjahanzeb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrjahanzeb"/>
    <language>en</language>
    <item>
      <title>Git branch upstreaming</title>
      <dc:creator>Jahanzeb Nawaz</dc:creator>
      <pubDate>Tue, 09 Jul 2024 15:16:30 +0000</pubDate>
      <link>https://dev.to/mrjahanzeb/git-branch-upstreaming-28b3</link>
      <guid>https://dev.to/mrjahanzeb/git-branch-upstreaming-28b3</guid>
      <description>&lt;p&gt;hey folks, if you tried to do a &lt;code&gt;git pull&lt;/code&gt; and you came across such a response where the command did not worked and asked you to set the upstream branch then you are at right place.&lt;/p&gt;

&lt;p&gt;git pull error message&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You asked me to pull without telling me which branch you
want to merge with, and 'branch.uat.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull &amp;lt;repository&amp;gt; &amp;lt;refspec&amp;gt;').
See git-pull(1) for details.

If you often merge with the same branch, you may want to
use something like the following in your configuration file:

    [branch "test22"]
    remote = &amp;lt;nickname&amp;gt;
    merge = &amp;lt;remote-ref&amp;gt;

    [remote "&amp;lt;nickname&amp;gt;"]
    url = &amp;lt;url&amp;gt;
    fetch = &amp;lt;refspec&amp;gt;

See git-config(1) for details.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;here are the following steps to fix it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git branch --set-upstream test02 origin/test02 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and after that try this command again&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git pull
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🎉 here you go with a working upstream branch&lt;/p&gt;

</description>
      <category>git</category>
      <category>upstream</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
