Reputation: 75
so I'm using NB with the C++ plugin and Git version control so I can work with colleagues.
I don't know what files are supposed to be "tracked" and we are getting problems because if we only add the code files to git, new files are not being automatically add to NB but only in the physical folder. We figured out that the configuration file is the problem but if we had it to repository we get another problem, absolute paths to the files.
What is the solution for this?
Cheers
Upvotes: 0
Views: 553
Reputation: 25350
I don't know what files are supposed to be "tracked"
As a rule of thumb:
nbproject
(some files only, see below!)What shouldn't go into git (and therefore onto your gitignore):
build
directorydist
directorynbproject
ignore these:
private
dirPackage-*
and Makefile-*
filesAbout the last (Package-* / Makefile-*) files i'm not completely sure - please try with them on gitignore first.
Let's assume such a project - put everything with a (x) on gitignore:
<project>
|
+- build/ (x)
|
+- dist/ (x)
|
+- nbproject/
| |
| +- private (x)
| |
| +- some files (as above)
|
+- src/
|
+- test/
|
+- Makefile
Upvotes: 3