<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Building app with nRF Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50658/building-app-with-nrf-connect-sdk-in-private-repo</link><description>We would like the ability to build our application using a version of the nRF Connect SDK that we have in a private repo. This is desirable for both long term maintenance, as well as capturing any changes we make to the SDK (such as the private key used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Aug 2019 10:18:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50658/building-app-with-nrf-connect-sdk-in-private-repo" /><item><title>RE: Building app with nRF Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/202790?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 10:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c154e82-a394-465b-9e64-24a345b64a44</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I would suggest making a fork of the nrf repo.&lt;/p&gt;
&lt;p&gt;(&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-445fe12e22a84fac8ef06ade84f98fc4/pastedimage1565165505679v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then you would need to clone that fork to your local computer:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mkdir ncs &amp;amp;&amp;amp; cd ncs
git clone https://github.com/&amp;lt;username&amp;gt;/fw-nrfconnect-nrf nrf
&lt;/pre&gt;&lt;a href="https://github.com/martiles/fw-nrfconnect-nrf-1"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you add the upstream repository as remote:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd nrf
git remote add ncs https://github.com/NordicPlayground/fw-nrfconnect-nrf
git remote -v&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then you &amp;#39;checkout&amp;#39; the latest stable tag (v1.0.0) and make a branch of that:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;git checkout v1.0.0
git checkout -b &amp;lt;new-branch-name&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then you would need to initialize west and get the other repositories:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd ..
west init -l nrf
cd nrf
west update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and then you can &amp;#39;git push&amp;#39; to get the changes up to your github.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;git push --set-upstream origin &amp;lt;name_of_your_branch&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;When there comes some new updates from upstream you can get those by:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd nrf
git checkout master
git fetch ncs
git merge ncs/master&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>