<?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>Publishing nRF project from VSCode to GitHub</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92800/publishing-nrf-project-from-vscode-to-github</link><description>Hello 
 I am trying to move all my Nordic project development into VSCode, and also link this with GitHub. Following examples on line, I installed the GitHub Pull Requests and Issues extension, and I have signed in to GitHub from VSCode, so that now I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 22 Oct 2022 21:34:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92800/publishing-nrf-project-from-vscode-to-github" /><item><title>RE: Publishing nRF project from VSCode to GitHub</title><link>https://devzone.nordicsemi.com/thread/391981?ContentTypeID=1</link><pubDate>Sat, 22 Oct 2022 21:34:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:869fda67-c188-4cd3-9a86-272dd5546a64</guid><dc:creator>garrettb</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I got 99% of the way there&amp;hellip;&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f60a.svg" title="Blush"&gt;&amp;#x1f60a;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried the method you suggested.&lt;/p&gt;
&lt;p&gt;Before using the [ Ctrl+shift+p --&amp;gt; Git: Initialize ] command, I added a .gitignore file to the project folder with the following contents:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;build/&lt;/li&gt;
&lt;li&gt;build-*/&lt;/li&gt;
&lt;li&gt;build_*/&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;VS Code did create the repository, and all the uncommitted project files (excluding the build files) were then visible in VS Code under the Source Control section.&lt;/p&gt;
&lt;p&gt;All good so far.&lt;/p&gt;
&lt;p&gt;Adding a Nordic VS Code project to GitHub&lt;/p&gt;
&lt;p&gt;After committing these files (from within VS Code), the &amp;ldquo;Publish Branch&amp;rdquo; button was displayed.&lt;/p&gt;
&lt;p&gt;Clicking this initiated a sequence of events authorising GitHub access to the project etc., and the project was then published in GitHub.&lt;/p&gt;
&lt;p&gt;The only thing I didn&amp;rsquo;t see how to do was how to choose which organization within my GitHub account that I wanted to publish the repository to, but I will figure this out the next time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Publishing nRF project from VSCode to GitHub</title><link>https://devzone.nordicsemi.com/thread/390563?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 07:50:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe99fbcf-9271-4304-a91b-1d6cfb3989cb</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Garrett,&lt;/p&gt;
&lt;p&gt;When using Git with a new project, the first thing to do it is to &lt;a href="https://git-scm.com/docs/git-init"&gt;initialize a repository&lt;/a&gt;. This can be done in the command line with &lt;code&gt;git init&lt;/code&gt;, or in VS Code through the command palette: Ctrl+shift+p --&amp;gt; &lt;code&gt;Git: Initialize Repository&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2022_2D00_10_2D00_13-090005.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This creates a .git folder in your working directory, which VS Code will recognise and display in the source control tab you were looking at earlier:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2022_2D00_10_2D00_13-093424.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can then start adding files and committing changes. To upload your project to a remote repository such as GitHub, you can follow one of many guides online.&lt;/p&gt;
&lt;p&gt;The reason your source control tab didn&amp;#39;t look like your first screenshot is because the NCS codebase itself is managed by source control too, and the nRF Connect for VS Code extension displays this in the &amp;quot;&lt;code&gt;West&lt;/code&gt;&amp;quot; section.&lt;/p&gt;
&lt;p&gt;As you might know, Zephyr has a &amp;quot;swiss-army knife&amp;quot; tool called &lt;a href="https://docs.zephyrproject.org/latest/develop/west/index.html"&gt;West&lt;/a&gt;, which among other things has source control features. These features, controlled by a &lt;a href="https://docs.zephyrproject.org/latest/develop/west/manifest.html"&gt;West manifest&lt;/a&gt;, are useful for managing projects that depend on multiple Git repositories, but are not needed for normal application development. Feel free to ignore and collapse that section (as I&amp;#39;ve done above).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul Pathak&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>