<?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: David Artiss</title>
    <description>The latest articles on DEV Community by David Artiss (@dartiss).</description>
    <link>https://dev.to/dartiss</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%2F15273%2F03fb97db-208b-49db-b9ad-f2015fcae616.jpg</url>
      <title>DEV Community: David Artiss</title>
      <link>https://dev.to/dartiss</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dartiss"/>
    <language>en</language>
    <item>
      <title>How to add the Jetpacks module page to your menus</title>
      <dc:creator>David Artiss</dc:creator>
      <pubDate>Wed, 15 Jul 2020 18:12:38 +0000</pubDate>
      <link>https://dev.to/dartiss/how-to-add-the-jetpacks-module-page-to-your-menus-138n</link>
      <guid>https://dev.to/dartiss/how-to-add-the-jetpacks-module-page-to-your-menus-138n</guid>
      <description>&lt;p&gt;For those who use Jetpack regularly, you’ll probably appreciate that, in recent years, the old screen that listed all of the modules has disappeared, to be replaced by a series of tabbed settings screens. Which is great, except some of the modules aren’t included (including some of those which default as switched on).&lt;/p&gt;

&lt;p&gt;The modules screen is still accessible but a link to it is tucked away at the bottom of the current settings screen.&lt;/p&gt;

&lt;p&gt;So, I’ve created a quick (slightly hacky) script to add it to the main Jetpack menu.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;Just add this code to your theme’s &lt;code&gt;functions.php&lt;/code&gt; file and it should re-appear as a sub-menu under the primary Jetpack menu. Here it is, 4th one down, named “Modules”…&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--z9ar1w9T--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/v1/https:artiss.blog/wp-content/uploads/2020/04/Screenshot-2020-04-25-at-11.01.54.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--z9ar1w9T--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/v1/https:artiss.blog/wp-content/uploads/2020/04/Screenshot-2020-04-25-at-11.01.54.png" alt="" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The only thing I’m aware of that doesn’t work 100% is that it doesn’t cause the main menu to open up once the new ‘Modules’ sub-menu is clicked on.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>jetpack</category>
    </item>
    <item>
      <title>How to rename your Github master branch</title>
      <dc:creator>David Artiss</dc:creator>
      <pubDate>Wed, 15 Jul 2020 17:43:25 +0000</pubDate>
      <link>https://dev.to/dartiss/how-to-rename-your-github-master-branch-27ne</link>
      <guid>https://dev.to/dartiss/how-to-rename-your-github-master-branch-27ne</guid>
      <description>&lt;p&gt;So, whether for inclusion reasons (see various discussions about the use of &lt;code&gt;master&lt;/code&gt; as a primary branch name) or just because you fancy a change, you'll find lots of people sharing Git commands on how to change the &lt;code&gt;master&lt;/code&gt; branch name. But I want to target those people, like me, who favour the GUI over the command line (yes, yes, we do exist!).&lt;/p&gt;

&lt;h2&gt;
  
  
  Changing the branch name in Github
&lt;/h2&gt;

&lt;p&gt;The issue here is that Github doesn’t give you a rename option. Instead, we need to create a new repo, a duplicate of the &lt;code&gt;master&lt;/code&gt;, make it the new, default branch and then remote &lt;code&gt;master&lt;/code&gt;. Thankfully, it’s not too difficult.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;On your repo’s main Github page, click on the branches dropdown and create a new branch. I’m calling mine &lt;code&gt;main&lt;/code&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--elYvih5G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://i1.wp.com/artiss.blog/wp-content/uploads/2020/06/Screenshot-2020-06-14-at-13.53.12.png%3Fw%3D723%26ssl%3D1" alt="" width="723" height="554"&gt;
&lt;/li&gt;
&lt;li&gt;This will copy your &lt;code&gt;master&lt;/code&gt; repo to it.&lt;/li&gt;
&lt;li&gt;Now click on the branches link near the top.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--REur2O7t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://i0.wp.com/artiss.blog/wp-content/uploads/2020/06/Screenshot-2020-06-14-at-13.54.55.png%3Fw%3D1023%26ssl%3D1" alt="" width="800" height="328"&gt;
&lt;/li&gt;
&lt;li&gt;Click on “Change Default Branch”.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BMkOUTcO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://i1.wp.com/artiss.blog/wp-content/uploads/2020/06/Screenshot-2020-06-14-at-13.57.48.png%3Fresize%3D1200%252C593%26ssl%3D1" alt="" width="800" height="395"&gt;
&lt;/li&gt;
&lt;li&gt;On the next screen, change the default branch from “master” to the one you previously created and then press “Update”.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x2ncLoMH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://i1.wp.com/artiss.blog/wp-content/uploads/2020/06/Screenshot-2020-06-14-at-14.00.50.png%3Fresize%3D1200%252C281%26ssl%3D1" alt="" width="800" height="187"&gt;
&lt;/li&gt;
&lt;li&gt;You’ll be given a warning that you need to click through.&lt;/li&gt;
&lt;li&gt;Now, click back on that “Branches” link at the top again.&lt;/li&gt;
&lt;li&gt;The final thing to do is to remove your old &lt;code&gt;master&lt;/code&gt; branch – just press the &lt;code&gt;trash/bin&lt;/code&gt; icon next to it to do this.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qeFWK6ph--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://i2.wp.com/artiss.blog/wp-content/uploads/2020/06/Screenshot-2020-06-14-at-14.03.07.png%3Fresize%3D1200%252C595%26ssl%3D1" alt="" width="800" height="397"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And that’s it. Your &lt;code&gt;master&lt;/code&gt; branch has now been replaced.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about Github Desktop?
&lt;/h2&gt;

&lt;p&gt;Good call – for your changes to be reflected in Github’s desktop app, you need to do something. Maybe.&lt;/p&gt;

&lt;p&gt;Click on &lt;code&gt;Fetch Origin&lt;/code&gt; to force the desktop app to update the repo. Now, this works but you’ll also your old master branch still present…&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aZCQxHHJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://artiss.blog/wp-content/uploads/2020/06/Screenshot-2020-06-14-at-14.08.20.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aZCQxHHJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://artiss.blog/wp-content/uploads/2020/06/Screenshot-2020-06-14-at-14.08.20.png" alt="" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Personally, I’ve found it easiest just to delete it and re-clone the repo.&lt;/p&gt;

</description>
      <category>github</category>
    </item>
  </channel>
</rss>
