<?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: Yoan Pratama Putra</title>
    <description>The latest articles on DEV Community by Yoan Pratama Putra (@oshimayoan).</description>
    <link>https://dev.to/oshimayoan</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%2F396899%2F9c5dbf55-cdf5-4d1b-aae3-d81d8d8b63cd.jpeg</url>
      <title>DEV Community: Yoan Pratama Putra</title>
      <link>https://dev.to/oshimayoan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oshimayoan"/>
    <language>en</language>
    <item>
      <title>Mirror a sub-directory GitHub repo with CircleCI</title>
      <dc:creator>Yoan Pratama Putra</dc:creator>
      <pubDate>Thu, 28 May 2020 04:20:27 +0000</pubDate>
      <link>https://dev.to/kodefox/mirror-a-sub-directory-github-repo-with-circleci-4kaf</link>
      <guid>https://dev.to/kodefox/mirror-a-sub-directory-github-repo-with-circleci-4kaf</guid>
      <description>&lt;p&gt;Last time, I was talking about &lt;a href="https://medium.com/p/68d038e66b04"&gt;Mirroring a Github Repo with CircleCI&lt;/a&gt;. That article was about mirroring the whole repository using &lt;code&gt;git clone --bare command&lt;/code&gt;. By using that git command, we not just mirror the whole content but also all branches from the repository.&lt;/p&gt;

&lt;p&gt;There are times that we want to only mirror a sub-directory from the main repository. We can achieve that easily by using a special command by "git".&lt;/p&gt;

&lt;p&gt;So today I will share what I learned mirroring a sub-directory from a GitHub repository using CircleCI.&lt;/p&gt;

&lt;p&gt;This time we don't need to generate an SSH key. We will use CircleCI's &lt;code&gt;checkout&lt;/code&gt; command as we need the CI to clone our repository normally, not bare.&lt;/p&gt;

&lt;p&gt;Add the code below into your "config.yml" and CircleCI will do the magic for you.&lt;/p&gt;


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


&lt;p&gt;We're done! Actually, this is a lot easier than the previous one as there is almost no setup this time.&lt;/p&gt;

&lt;p&gt;You can push a commit now to make the CircleCI mirror your sub-directory into another repository.&lt;/p&gt;

</description>
      <category>circleci</category>
      <category>github</category>
      <category>mirroring</category>
      <category>repository</category>
    </item>
  </channel>
</rss>
