Sharing a project with Git and KDS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sharing a project with Git and KDS

1,561 Views
alejandrosancho
Contributor I

Dear all,

I find myself trying to share a project I coded for the k66f.  we planned to share it using GIT but the problem is that when we do version control, the settings of all the include files and in general the whole project are set to the folders in my computer. What we want is to share a project so that the rest of the people in the project can open it and modify it without any need of changing paths of files etc. 

Could someone provide which files should be included in the repository and which ones should be left out so that we could share a project in KDS using Git.

Thank you very much in advance.

Labels (1)
Tags (4)
0 Kudos
Reply
2 Replies

1,267 Views
BlackNight
NXP Employee
NXP Employee

Hi Alejandro,

You might have a look at the projects I share on GitHub: mcuoneclipse/Examples/KDS at master · ErichStyger/mcuoneclipse · GitHub 

The .gitignore depends on the project type. For a Processor Expert one it looks like this:

mcuoneclipse/.gitignore at master · ErichStyger/mcuoneclipse · GitHub 

For a SDK project it looks like this:

mcuoneclipse/.gitignore at master · ErichStyger/mcuoneclipse · GitHub 

As long as you are not using absolute paths in your project settings, then you easily can share them with a version control system. Use variables like ${ProjDirPath}:

pastedImage_4.png

Even better, use relative paths like this:

pastedImage_5.png

For the above, you need to know (or keep in mind) that the 'current directory' for the build tools is the 'output' folder in the project (usually 'Debug' or 'Release'). So '../' goes up one level. That way the paths are relative to that folder.

There is as well Version Control with Processor Expert Projects | MCU on Eclipse which still applies.

I hope this helps,

Erich

0 Kudos
Reply

1,267 Views
alejandrosancho
Contributor I

Dear Erich,

Thank you for the time you took to answer, this has been a very helpful answer to solve our issue. We changed the gitignore file and now it seems we can work fine. 

Best,

A.

0 Kudos
Reply