<?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: Aalaap Ghag</title>
    <description>The latest articles on DEV Community by Aalaap Ghag (@aalaap).</description>
    <link>https://dev.to/aalaap</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%2F181257%2F45694be1-00b1-4fe7-a134-db035c45fbe5.jpg</url>
      <title>DEV Community: Aalaap Ghag</title>
      <link>https://dev.to/aalaap</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aalaap"/>
    <language>en</language>
    <item>
      <title>Rename the master branch on GitHub web, without command line Git</title>
      <dc:creator>Aalaap Ghag</dc:creator>
      <pubDate>Mon, 13 Jul 2020 17:42:00 +0000</pubDate>
      <link>https://dev.to/aalaap/rename-the-master-branch-on-github-web-without-command-line-git-ih0</link>
      <guid>https://dev.to/aalaap/rename-the-master-branch-on-github-web-without-command-line-git-ih0</guid>
      <description>&lt;p&gt;Most of the guides to renaming the &lt;code&gt;master&lt;/code&gt; branch to &lt;code&gt;main&lt;/code&gt; (or whatever you choose) resort to asking you to to use the command line Git app to check out the repo, make the change and push it back up. That's fine if you're on your development machine with SSH keys added and everything set up, but what if you need to do this from a temporary workstation with no SSH keys or perhaps no Git even? What if you wish to do so using a portable device like your smartphone or an iPad?&lt;/p&gt;

&lt;p&gt;I have a lot of repositories on GitHub, both public and private. Some of these are past projects that I don't have a local working copy of, so checking out and going through all those steps seems like a tedious task.&lt;/p&gt;

&lt;p&gt;Thankfully, there is an easier way using the GitHub web interface that involves none of this. From the GitHub repo that you wish to do this for...&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on the branch button again and type in a name for the new branch, eg &lt;code&gt;main&lt;/code&gt;. &lt;em&gt;Ensure you're doing this while on the &lt;code&gt;master&lt;/code&gt; branch.&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Click on the branch button once more and then on &lt;strong&gt;View all branches&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In the list of branches that shows up, next to your &lt;code&gt;master&lt;/code&gt; branch, click on the button to &lt;strong&gt;Change default branch&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;From the dropdown that shows up, pick the name of your new branch and click &lt;strong&gt;Update&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Read the warning and click &lt;strong&gt;I understand, update the default branch&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You're done at this point, but you can and should also go and delete the &lt;code&gt;master&lt;/code&gt; branch.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on the &lt;strong&gt;Code&lt;/strong&gt; tab to return to the code.&lt;/li&gt;
&lt;li&gt;Click on the branch button and &lt;strong&gt;View all branches&lt;/strong&gt; again.&lt;/li&gt;
&lt;li&gt;Click on the red trash can icon next to the &lt;code&gt;master&lt;/code&gt; branch.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's all it takes!&lt;/p&gt;

&lt;p&gt;Thank you for making the world a better place. Stay safe and keep coding!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
