I'm not sure why you say "this does not like the *.o
ban", but I think you mean that there are no good templates that you can define that relate to the generated files, but not to the source files? If these are just a few things that appear (for example, separate embedded executables that often do not have a Linux extension), you can explicitly specify them in .gitignore
, so they are not a problem.
If there really are many, many files that are generated by the build process that share extensions and other templates with source files, then just use templates that include your source files. You can even put *
in .gitignore
if it is really that bad. This means that when you enter git status
no new files appear or are added when using git add .
, but it does not harm any files that are already added to the repository; git will still tell you about the changes in them, and pick them up when you use git add .
. It just loads you a bit to explicitly start tracking files that concern you.
source share