<?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>nRF53: What files to add to project Git Repo</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87025/nrf53-what-files-to-add-to-project-git-repo</link><description>Sorry if this is a repeat ticket. I&amp;#39;ve done some searches and they result in information around Zephyr and RF Connect SDK Git repos and West usage to manages related source files and builds. But the search hasn&amp;#39;t not yet reveled any info about what directories</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Apr 2022 10:29:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87025/nrf53-what-files-to-add-to-project-git-repo" /><item><title>RE: nRF53: What files to add to project Git Repo</title><link>https://devzone.nordicsemi.com/thread/365144?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 10:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d1385c7-e9d5-4e73-b976-e7fbe8b51ac0</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="bbbakke"]This sounds like a useful document, unfortunately I can&amp;#39;t access it. Is this document public?&amp;nbsp;Can you provide a link that is not in your &amp;quot;support-private&amp;quot; URL path?[/quote]
&lt;p&gt;The wrong url was pasted in the hyperlink. This should be the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/dm_managing_code.html"&gt;correct url to managing code base&lt;/a&gt;. Does it work?&lt;/p&gt;
[quote user="bbbakke"] turns out the thing you and I did not know is, &lt;strong&gt;git&amp;nbsp;does automatically ignore any sub-folder that contains a .git folder&lt;/strong&gt; (i.e., the sub-folder is already a repo so no need to track any files contain in it within the parent repo).&amp;nbsp;[/quote]
&lt;p&gt;Then I learned something new aswell. Thanks for sharing!&lt;/p&gt;
[quote user="bbbakke"]So the solution is to:&amp;nbsp;[/quote]
&lt;p&gt;1-2 sounds right.&lt;/p&gt;
&lt;p&gt;I agree that 3.a needs to be checked. It could be containing (just speculation about what could go wrong) some info about how the environment/paths is set up (similar to appdata for vscode) but this needs to be verified.&lt;/p&gt;
&lt;p&gt;3b sounds like a plan.&lt;/p&gt;
&lt;p&gt;4-6 I agree.&lt;/p&gt;
[quote user="bbbakke"]Would be nice if the Nordic&amp;nbsp;Team had this documented somewhere, maybe in the document link listed above that didn&amp;#39;t work for me[/quote]
&lt;p&gt;I&amp;#39;ll ask around the docs/product marketing team if we should make a guide/blog about this. Seems like its nice to have after you clarified some of the misunderstandings we had in this thread.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53: What files to add to project Git Repo</title><link>https://devzone.nordicsemi.com/thread/365022?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 17:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6edab2dd-ccc2-4777-a70b-462af1a1ee34</guid><dc:creator>bbbakke</dc:creator><description>[quote userid="107683" url="~/f/nordic-q-a/87025/nrf53-what-files-to-add-to-project-git-repo/364850#364850"]If you investigate the folders from your workspace setup and compare it to the SDK installation folder from the automatic installation you will find that they contain the same files, e.g you clone the entire SDK with the exception of the west.yml file within your application folder.[/quote]
&lt;p&gt;Of course it clones of the nRF SDK, Zephyr, bootloadeer, etc., git repos, that is exactly the purpose of the &amp;quot;west&amp;quot; tool. But, more importantly, it&amp;nbsp;clones&amp;nbsp;exact and specific versions. That is the benefit of using west workspaces. When you have a multi-developer team, you don&amp;#39;t want one on SDK ver 1.7.0, another on 1.9.99, and a third on the newest release made(hypothetically) this week. You want everyone on the same version and mange upgrades to newer version if and when appropriate.&amp;nbsp;&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/87025/nrf53-what-files-to-add-to-project-git-repo/364850#364850"]Tech support at Nordic Semiconductor are a part of the engineering team, so you&amp;#39;ve already reached us.[/quote]
&lt;p&gt;But we were not making any progress in our discuss so I hope you would reach out to others.&amp;nbsp;&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/87025/nrf53-what-files-to-add-to-project-git-repo/364850#364850"]&lt;a href="https://devzone.nordicsemi.com/support-private/support/287690/Managing%20the%20code%20base"&gt;Managing the code base&lt;/a&gt;&amp;nbsp;should give you some tips and tricks if you want to work with git based development and how the SDK folders are related through git and west as well as more info about how to instance&amp;nbsp;[/quote]
&lt;p&gt;This sounds like a useful document, unfortunately I can&amp;#39;t access it. Is this document public?&amp;nbsp;Can you provide a link that is not in your &amp;quot;support-private&amp;quot; URL path?&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/87025/nrf53-what-files-to-add-to-project-git-repo/364850#364850"]Brute force through deleting folders in the SDK, upload to git, clone back, pristine build and flash to see if it works. If it does not work, then there are some dependencies that causes you to require that folder.[/quote]
&lt;p&gt;This is what I tried yesterday.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I initialized git with &amp;quot;git init&amp;quot;&amp;nbsp;in the &amp;quot;&lt;span&gt;PeripheralUART&amp;quot; directory. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;I added a .gitignore with the build directory so it would be ignored. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;I look at&amp;nbsp;the&amp;nbsp;files git lists as untracked.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Guess what, none of the clone repos,&amp;nbsp;nRF SDK, Zephyr, bootloadeer, etc., where listed. It was as if git was ignoring them even though they were not in the .gitignore.&amp;nbsp;&lt;/span&gt;&lt;span&gt;After some google searches and StackOverflow reading, turns out the thing you and I did not know is, &lt;strong&gt;git&amp;nbsp;does automatically ignore any sub-folder that contains a .git folder&lt;/strong&gt; (i.e., the sub-folder is already a repo so no need to track any files contain in it within the parent repo).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So the solution is to:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Create the initial project from the sample of choice in VS Code as a &amp;quot;Workspace&amp;quot; (a product development team should not use freestanding IMHO, and if you do, make sure the version of all other repos used in the build and toolchain&amp;nbsp;are well documented if you want to be able to build it a year later for maintenance).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Initialize your git repo in the parent directory&amp;nbsp;of the project folder (where the .west folder exists).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Add a .gitignore file:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Ignore &amp;quot;.vscode&amp;quot; folders (Is this correct? Need to check.)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Ignore &amp;quot;build&amp;quot; folders (I have a problem with this because ignoring the build directory means that the build configuration is not tracked in git, but I will take that up in a different thread).&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Add all of the project folders and files, including the .west subdirectory which has the west manifest (config file).&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Do the commit and push it (you will need to setup your remote URL).&lt;/li&gt;
&lt;li&gt;&lt;span&gt;When you or a team member clones the project:&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open&amp;nbsp;the app project folder in VS Code (with the nRF Connect plugin installed of course)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Open a nRF terminal (it has the correct env to run west commands) &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Run &amp;quot;west update&amp;quot; and it will pull in all the other required repos with the exact version everyone else is using.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Hope this helps others. Would be nice if the Nordic&amp;nbsp;Team had this documented somewhere, maybe in the document link listed above that didn&amp;#39;t work for me. Hopefully that link will be fixed / made public.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Brad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53: What files to add to project Git Repo</title><link>https://devzone.nordicsemi.com/thread/364850?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 08:09:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:640b1502-3d09-4070-9375-d94c3c598c99</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Brad,&lt;/p&gt;
[quote user="bbbakke"]I suggest that you try creating&amp;nbsp;a project from a sample as I have with the Nordic tools, specifically&amp;nbsp;in VS Code with the nRF Connect Extension Pack. [/quote]
&lt;p&gt;This is what I based my previous answer on. If you investigate the folders from your workspace setup and compare it to the SDK installation folder from the automatic installation you will find that they contain the same files, e.g you clone the entire SDK with the exception of the west.yml file within your application folder.&lt;/p&gt;
[quote user="bbbakke"]but the nRF Connect VS Code plug-in (through the use of &amp;quot;west workspace&amp;quot;)&amp;nbsp;cloned&amp;nbsp;all these additional git repos.[/quote]
&lt;p&gt;Yes, this is what &amp;quot;Application type workspace&amp;quot; does. It &amp;quot;sets up&amp;quot; the SDK in a new instance where you get your instance verified with the addition of a west.yml file that instances which version this application is for. In a freestanding this is not done and instancing and organizing where to put the application is left to the developer. You could compare the west.yml in peripheral_uart in your peripheralUART workspace and consult with the resources below if instancing the project fixes your issue.&lt;/p&gt;
[quote user="bbbakke"]The guidance I need from your engineering team[/quote]
&lt;p&gt;Tech support at Nordic Semiconductor are a part of the engineering team, so you&amp;#39;ve already reached us.&lt;/p&gt;
[quote user="bbbakke"]But, as you said, I do not want to add these to my git repo as it is unnecessary[/quote]
&lt;p&gt;Without restating my previous reply here are some new suggestions and resources I recommend you try and/or read up on.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Brute force through deleting folders in the SDK, upload to git, clone back, pristine build and flash to see if it works. If it does not work, then there are some dependencies that causes you to require that folder.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/support-private/support/287690/Managing%20the%20code%20base"&gt;Managing the code base&lt;/a&gt;&amp;nbsp;should give you some tips and tricks if you want to work with git based development and how the SDK folders are related through git and west as well as more info about how to instance&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/topic/nrf-connect-sdk-structure-and-content/"&gt;NCS Structure and content&lt;/a&gt;&amp;nbsp;as well as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/b/archives/posts/nrf-connect-sdk-tutorial---part-2-1478313418#h23sjwm53ncqb12k9r1nw58mo1k4vuyc"&gt;this older, but still valid NCS tutorial&lt;/a&gt;&amp;nbsp;should tell you more about how the SDK is set and maybe give you more clues about the dependencies between the SDK folders.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53: What files to add to project Git Repo</title><link>https://devzone.nordicsemi.com/thread/364785?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 21:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f54125a4-38a0-4dc6-8e63-02cb04e2c624</guid><dc:creator>bbbakke</dc:creator><description>[quote userid="107683" url="~/f/nordic-q-a/87025/nrf53-what-files-to-add-to-project-git-repo/364634#364634"]To summarize, if I&amp;#39;ve understood your configuration properly, you will have to add the whole SDK to the git repo to get it to work as you describe. I would instead recommend you to install the SDK locally either through the automatic install in nRF Connect for Desktop or the manual installation guide linked above, and to only have your application in the repository. Every project I&amp;#39;ve worked on with NCS has used this &amp;quot;workspace philosophy&amp;quot;, since what you want to change is on the application level of folders, and extremely rarely in the SDK files.&amp;nbsp;[/quote]
&lt;p&gt;Actually, I don&amp;#39;t think you have understood this correctly. I suggest that you try creating&amp;nbsp;a project from a sample as I have with the Nordic tools, specifically&amp;nbsp;in VS Code with the nRF Connect Extension Pack. If you follow the steps I did, creating the project as a &amp;quot;Workspace&amp;quot; (not Freestanding) you will find that I did not &amp;quot;add the whole SDK to the git repo&amp;quot;, but the nRF Connect VS Code plug-in (through the use of &amp;quot;west workspace&amp;quot;)&amp;nbsp;cloned&amp;nbsp;all these additional git repos. As you can see in the following screenshot, the Nordic tool tells you the &amp;quot;west workspace&amp;quot; is used to manage the SDK version and it will create its own instance.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2022_2D00_04_2D00_25-at-4.24.02-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;This is not bad, it is actually good. The&amp;nbsp;&amp;quot;west&amp;quot; pulls in the correct version of every thing needed to build the app. But, as you said, I do not want to add these to my git repo as it is unnecessary. I do not need a copy in my git repo because the &amp;quot;west&amp;quot; tool will pull in the correct version of the other git repos; that is its purpose.&lt;/p&gt;
&lt;p&gt;The guidance I need from your engineering team (please reach out&amp;nbsp;to them for their guidance) is clear definition of what items need to be in my git repo so, when cloned and &amp;quot;west update&amp;quot; is executed, the west tool has the correct information&amp;nbsp;to pull in everything else&amp;nbsp;correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, these are the initial steps I did in VS Code (please, try it yourself):&amp;nbsp;&lt;/p&gt;
[quote userid="94567" url="~/f/nordic-q-a/87025/nrf53-what-files-to-add-to-project-git-repo/364559#364559"]As I stated I’m used VSCode with the nRF Connect Extension Pack plugin. From the “nRF Connect for VS Code” welcome screen I selected “Create a new application from sample…”. In the next screen, for Application type I selected “Workspace”. [/quote]
&lt;p&gt;If you try this and look in the director above your project you will see all the other repos were cloned as the workspace was created from the sample.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53: What files to add to project Git Repo</title><link>https://devzone.nordicsemi.com/thread/364634?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 08:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f540af6e-7af5-42ea-ab36-61353c875472</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Brad,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for filling in with more details on your configuration. I will do my best to answer them in turn!&lt;br /&gt;&lt;br /&gt;1) In this case it would be where the SDK is installed, I.E the root workspace folder PeripheralUART. If you initialize the git repo at periphehral_uart, it will only take the application project folder in a similar manner to what I suggested in my previous reply.&lt;/p&gt;
&lt;p&gt;Although this might seem like a optimal solution, I believe this will and may cause some possible time consuming issues down the line.&lt;/p&gt;
&lt;p&gt;One possible issue is that the SDK- and your project folder is over 4GB large, which will require quite a lot of files to both commit, pull and push whenever you&amp;#39;re swapping devices or your colleagues clones the repository.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A second issue I foresee is that you&amp;nbsp;will spend some time to set the SDK up properly due to either some missing paths or that requirements such as nrfjprog has not been installed. The best way to guarantee this is to perform the SDK setup through either the toolchain manager in nRF Connect for Desktop, or through this&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#installing-the-ncs-manually"&gt;manual installation guide&lt;/a&gt;.&amp;nbsp;Both of these installation methods allows you to quickly swap between west workspaces or SDK versions if desired so after the installation procedure.&lt;/p&gt;
&lt;p&gt;2) This will be trickier. If you end up with going for your desired configuration where the SDK is a part of the git-repo, the only files I can guarantee that it would be ok to omit without diving deep into the SDK structure is the sample folders in zephyr and nrf. This will come with a drawback of having to look up the samples either online or in a separate NCS SDK workspace if you want to investigate how a sample such as central_uart sample works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) The sample you are suggesting would not require you to change any of the files in SDK or Zephyr, but rather through configuring your application files either within prj.conf in the peripheral_uart folder above or by defined macros in the .c or .h files. All these files can be found within properly initialized application folder. But in case you modify a SDK or Zephyr file, the changes are handled by git! Git only tracks changes in your files, relative to the origin repository. So lets say you have a local repo on your computer that only has the UUID changed (1 code line) relative to the origin, the commit that will be pushed will only be that one line of code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To summarize, if I&amp;#39;ve understood your configuration properly, you will have to add the whole SDK to the git repo to get it to work as you describe. I would instead recommend you to install the SDK locally either through the automatic install in nRF Connect for Desktop or the manual installation guide linked above, and to only have your application in the repository. Every project I&amp;#39;ve worked on with NCS has used this &amp;quot;workspace philosophy&amp;quot;, since what you want to change is on the application level of folders, and extremely rarely in the SDK files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know if this helps you in any way, and feel free to follow up with more questions if you have any regarding this issue/topic!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53: What files to add to project Git Repo</title><link>https://devzone.nordicsemi.com/thread/364559?ContentTypeID=1</link><pubDate>Sat, 23 Apr 2022 21:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15584f3a-a37a-45ae-bdb8-ba2e185041ab</guid><dc:creator>bbbakke</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thank you for that very thorough explanation. It was helpful and I think it will be helpful to many others as well.&lt;/p&gt;
&lt;p&gt;I have been developing on nRF528xx devices for some time now, but just getting start with the Zephyr based nRF Connect SDK for a nRF5340 project. Could you help me a little more with a specific case? Sorry for repeating the scenario, but I want to give a little more detail.&lt;/p&gt;
&lt;p&gt;As I stated I&amp;rsquo;m used VSCode with the nRF Connect Extension Pack plugin. From the &amp;ldquo;nRF Connect for VS Code&amp;rdquo; welcome screen I selected &amp;ldquo;Create a new application from sample&amp;hellip;&amp;rdquo;. In the next screen, for Application type I selected &amp;ldquo;Workspace&amp;rdquo;. I made this selection because, as the description states,&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Workspace applications use west workspace to version nRF Connect SDK. They will have their own nRF Connect SDK instance&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;This is a great option because it means if I clone the git repo on a different machine, or a colleague clones the repo, we don&amp;rsquo;t have to worry about what SDK / tool chain version to install, as &amp;ldquo;west&amp;rdquo; will pull in everything needed, with the correct versions.&lt;/p&gt;
&lt;p&gt;So, when I complete the process, this is what my VS Code project looks like:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2022_2D00_04_2D00_23-at-12.20.20-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;And it builds without error, and I can flash it to my nRF5340 dk, step through code, see variables and memory space, etc. Alls great so far but notice in the image above, none of the zephyr or nRF Connect files are in the workspace. So where are they? One level up as you can see in this image:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2022_2D00_04_2D00_23-at-4.29.16-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;So, my questions are with respect to this configuration...&lt;/p&gt;
&lt;p&gt;1. Where do I initialize the git repo in this directory structure so when it is cloned, and west invoked, the entire project is replicated, which will build, flash, and run without error? Looking at the second image, should it be at the PeripheralUART level? Or the peripheral_uart level?&lt;/p&gt;
&lt;p&gt;2. What should the contents of the .gitignore be so only the necessary files are added and tracked in git? I know how to create the .gitignore, but in need to know, for the zephyr based project that uses west workspace, what&amp;nbsp;should&amp;nbsp;be ignored in addition to the build directory.&lt;/p&gt;
&lt;p&gt;A follow up question that has come up since my first post&lt;/p&gt;
&lt;p&gt;3. If changes are needed to the nRF SDK or zephyr files, how do those get included and tracked in git. For example, if NUS is used but the UUID needs to be changed how would that be done so change would be in the git commit? Would he whole SDK have to be added to the git repo?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Brad&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF53: What files to add to project Git Repo</title><link>https://devzone.nordicsemi.com/thread/363518?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 10:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aaed851-8764-4881-9ce4-9d21f7b19f57</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Brad,&lt;br /&gt;&lt;br /&gt;Correct me if I&amp;#39;m wrong, but as far as I&amp;#39;m understanding you&amp;#39;re getting started developing and want to upload a NCS-projects that you&amp;#39;ve written such as a modified peripheral_uart to to your own github repository. Also, in case you&amp;#39;re either new or intermediary to developing with nRF Connect for Desktop in VSCode,&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/"&gt;the Nordic Academy page&lt;/a&gt;&amp;nbsp;has a great getting started guide you might want to check out!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]So now I want to take what I have created and get it into a new project Git repo that I will manage on Github. But I don&amp;#39;t know what directory to init my git repo,[/quote]
&lt;p&gt;In general you only want your application uploaded to git and to have the SDK (nRF Connect for Desktop) and its toolchain set up locally on the computers. Doing it this way allows you to build and flash the application on your local device where you clone your github-repo to. If you&amp;#39;re doing it this way, then I would add the build folder to the .gitignore file.&lt;/p&gt;
&lt;p&gt;There are multiple ways to create and work with your application, but I personally prefer to write my projects in a &amp;quot;my_projects&amp;quot;-folder on the same level as the toolchain. The application you&amp;#39;re writing can still be created from existing samples through the nRF Connect extension and developed in VSCode.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1650357859274v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Where you may organize your applications according to what toolchain you&amp;#39;re working with (1.9.1 or 1.8.0 etc), where &amp;quot;my_git_sample&amp;quot; is the sample app for demonstration purposes. This folder contains a &amp;quot;hello_world&amp;quot;-sample with an additional .gitignore.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1650359215281v7.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;From here, you must have installed git on your Windows machine through a tutorial such as&amp;nbsp;&lt;a href="https://phoenixnap.com/kb/how-to-install-git-windows"&gt;this step by step guide from pheonixnap.com&lt;/a&gt;&amp;nbsp;(or other similar tutorials. This was just the first search I found).&amp;nbsp;&lt;/p&gt;
[quote user=""]So now I want to take what I have created and get it into a new project Git repo that I will manage on Github[/quote]
&lt;p&gt;The first step is to create a empty git-repo on your github.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After this, you will be prompted from a quick-setup to either add something to the repo through bash/cmd/desktop. Choose the method suited for you based on if its a new or existing project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1650363451800v8.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you choose method &amp;quot;existing repository&amp;quot;, open up a git bash window to that application folder (in my case the path is&amp;nbsp;C:\Nordic\SDKs\ncs\my_projects\1.9.1\my_git_sample), and write the lines from the quick setup. You might have to set up a git token or two-factor on your git to allow you to set up remotes from bash, but that should be relatively quick to set up if you have not done so already.&lt;/p&gt;
[quote user=""]how to define my .gitignore[/quote]
&lt;p&gt;The .gitignore can be defined by simply creating a new file in the application folder (either from explorer or adding a new file in vscode), and naming it &amp;quot;.gitignore&amp;quot;. Here you write what folders you want to ignore, such as &amp;quot;&lt;em&gt;build/&amp;quot;,&amp;nbsp;&lt;/em&gt;meaning all files in the folder named build.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope this gets you started, and let me know if you have any additional questions!&lt;br /&gt;&lt;br /&gt;Kind regards, &lt;br /&gt;Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>