<?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: Gökhan Alıcı</title>
    <description>The latest articles on DEV Community by Gökhan Alıcı (@gokhanaliccii).</description>
    <link>https://dev.to/gokhanaliccii</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F215798%2F27add603-096c-40d5-b9ca-323b43ce7141.png</url>
      <title>DEV Community: Gökhan Alıcı</title>
      <link>https://dev.to/gokhanaliccii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gokhanaliccii"/>
    <language>en</language>
    <item>
      <title>How to speed up ci server with small git command change ? </title>
      <dc:creator>Gökhan Alıcı</dc:creator>
      <pubDate>Tue, 20 Aug 2019 23:16:34 +0000</pubDate>
      <link>https://dev.to/gokhanaliccii/how-to-speed-up-ci-server-with-small-git-command-change-24i9</link>
      <guid>https://dev.to/gokhanaliccii/how-to-speed-up-ci-server-with-small-git-command-change-24i9</guid>
      <description>&lt;p&gt;Last year I was working on enterprise project which has been maintaining for a 3/4 years. In the beginning of the project's repository designed as single repository for android and ios projects but during development of project it split up to separate repositories. But even when i run git clone command took almost 15 minutes. I thought it won't be problem because I won't run that command frequently but what happened ? I started to run git clone commit frequently due to ci server. Because I created jenkins job to run tests and build apk during our pr process which basically do below steps&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Setup android environment&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clone project&lt;/strong&gt; &lt;/li&gt;
&lt;li&gt;Run unit test&lt;/li&gt;
&lt;li&gt;Build apk
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Until today i didn't aware of how to speed up project clone &lt;strong&gt;time&lt;/strong&gt;&lt;br&gt;
If I'd run &lt;/p&gt;

&lt;p&gt;&lt;code&gt;git clone **url** --single-branch **branch-name** depth=1&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;instead of&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git clone **url**&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;it would have been &lt;strong&gt;7&lt;/strong&gt; times faster.&lt;/p&gt;

&lt;h4&gt;
  
  
  TIL: &lt;a href="https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt"&gt;shallow clone&lt;/a&gt;
&lt;/h4&gt;

</description>
      <category>git</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
