.gitignore is a mechanism how to tell git what to track and what not to track. It is a single wile placed in the repository. The rules in this file applies recursively into sub directories.
.gitignore for ROS package.¶
# The basic build bin lib msg_gen srv_gen cmake_install.cmake # Massages and services Python files src/<your_package> # Compiled Python files *.pyc # Eclipse configuration files () .cproject .project .pydevproject # Dynamic reconfigure *.cfgc src/*/cfg cfg/cpp