Can I include other .gitignore file in a .gitignore file? (like #include in c-like languages)

You could: Have a template repo with: those xxx.gitignore files in it: a .gitignore file with “xxx-gitignore-xxx” in it (in other word, with a content you can easily identify a .gitattribute filter driver (for each new repo, you clone it and can start with those files already there. Then you remove the remote ‘origin‘, or … Read more

Heredoc in a Makefile?

Another GNU Make solution. You can do it using the define and export commands as follows: define GITIGNOREDS *.o depend endef SRCS = $(wildcard [a-z]*.c) EXES = $(SRCS:.c=) export GITIGNOREDS .gitignore: $(SRCS) echo $(EXES) | sed ‘s/ /\n/g’ > $@ echo “$$GITIGNOREDS” >> $@ You have to be careful of make expansions (i.e. $(x)) inside … Read more

Issue with ignoring subdirectory in git

One of the reasons might be that you already committed that files to your repository. In that case adding them to .gitignore doesn’t prevent git from tracking these files. To fix that you should first remove them from repository like that: git rm -r target/ (If your project has modules, you need to include the … Read more

Maven archetype plugin doesn’t let .resources in archetype-resources through

The bug seems to be still present in the maven-archetype-plugin v3.0.1 . For those who do not want to downgrade the maven-resource-plugin. I managed to establish a more or less ugly workaround. First you rename the archetype-resources/.gitignore to __gitignore__ then inside the archetype-metadata.xml add <requiredProperties> <requiredProperty key=”gitignore”> <defaultValue>.gitignore</defaultValue> </requiredProperty> </requiredProperties> <fileSets> <fileSet> <directory></directory> <includes> <include>__gitignore__</include> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)