Git processing a large number of files that should not be checked on svn

I use git for svn, and for each branch I have, I need to do a complete build (which takes several minutes). These assembly files should NOT be checked, but they are mixed with user-modified files, which means that I cannot just exclude the directory. User-modified files can also change, which means that I cannot create special rules for these files only.

Is there a way to maintain a set of unregistered files in git in each branch? What are my options?

+4
source share
3 answers

If you configured gitignore to ignore all files, then git will never offer you to add new files to your repo. However, any scanned files will be processed as regular monitored files.

PROJECT_ROOT / .gitignore:

* 

Then you can add new files with git add -f FILENAME

0
source

If there is a clear naming convention (which can change for each branch), you can have different .gitignore for each branch with the correct rules to exclude these assembly files within the directory.

You can combine this with a merge file to preserve these .gitignore contents during merge branches.

+1
source

This does not answer your question directly, but if repairing your build process is an option, the standard approach is to put the generated generated files in a completely separate directory ... it avoids headaches like this and makes it "clean", the action simpler.

0
source

All Articles