[git] Moves gitignore to files instead of templates
[git] Fixes mode on git recipe