I am new to ROS, catkin, and git. I'm trying to setup my system properly for version control, and for working on my laptop and desktop machines using a central git repository.
I found an question and answer from earlier pre-catkin about what to put in the .gitignore file. I assume there are a number of catkin files and directories that should be ignored because they are either not necessary or would actually cause conflicts if clones onto the wrong system.
What should be ignored for catkin?
Any other suggestions on using git with ROS?
Addendum:
After reading the answer I realized my question was incomplete. I am using Eclipse and setup the project running the catkin command in the "src/" directory:
cmake -DCMAKE_INSTALL_PREFIX=../../install -DCATKIN_DEVEL_PREFIX=../../devel -G"Eclipse CDT4 - Unix Makefiles"
This creates a number of files and directories. So my question is which of those files or directories should be excluded from git.
Originally posted by Rud on ROS Answers with karma: 133 on 2015-08-27
Post score: 0
Original comments
Comment by joq on 2015-08-28:
The paths you listed are outside the git repo. Whatever Eclipse creates is a question for them, not for ROS answers. The simplest solution might be to try it and then see what git status
says.
Comment by Rud on 2015-08-29:
joq - you are correct in part. It depends on where you run the 'cmake' command line. I was running it in the src/ directory. I re-read many of the sites on setting up Eclipse and found that I could or should have been running it in build/. That puts all the extra files in build.