<?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: Nwobodo Igwe</title>
    <description>The latest articles on DEV Community by Nwobodo Igwe (@igwe0001).</description>
    <link>https://dev.to/igwe0001</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%2F547865%2F7b1676f6-e176-4d2e-a074-6f1aba3312a6.jpeg</url>
      <title>DEV Community: Nwobodo Igwe</title>
      <link>https://dev.to/igwe0001</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/igwe0001"/>
    <language>en</language>
    <item>
      <title>Changing vs code repository from master branch to main branch.</title>
      <dc:creator>Nwobodo Igwe</dc:creator>
      <pubDate>Sat, 31 Jul 2021 09:52:14 +0000</pubDate>
      <link>https://dev.to/igwe0001/changing-vs-code-repository-from-master-branch-to-main-branch-5cpl</link>
      <guid>https://dev.to/igwe0001/changing-vs-code-repository-from-master-branch-to-main-branch-5cpl</guid>
      <description>&lt;p&gt;I spent the last 6 hours trying to initialise my repository on vs code and changing the master branch to main, here is how I finally did it. &lt;br&gt;
I created an empty file and opened it on vs code, like I should. Then I went to github and created a repository after which I copied the url.&lt;/p&gt;

&lt;p&gt;By default if you initialise a repository on vs code it is set to the master branch which I didn’t want. So I clicked on View (at the nav bar) and clicked on command template, it brought out a search bar where I wrote "Git: Add remote" (it auto fills) and clicked on it.&lt;/p&gt;

&lt;p&gt;It asked for the url of my repository which I provided and also asked for a name which I gave it (anything goes) after wards i clicked enter and in command template I typed "Git: Checkout to" which brought out the master branch and the url I provided below, I clicked on the Url and master branched icon at the right bottom of vs code changed to main. I then proceed to commit and push to git hub which updated my main branch without creating a master branch or promoting any errors.&lt;/p&gt;

&lt;p&gt;I hope this helps whoever needs it, and I’ll advise you add your Repository url and changing the master to main before commiting, other wise it updates in master and I don't know how to change it afterwards.&lt;br&gt;
I hope this helps someone and I still don’t know why it’s not set to main by default.&lt;/p&gt;

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