.gitattributes smudge and clean filters as a part of the repository

后端 未结 2 891
甜味超标
甜味超标 2021-02-13 07:14

I have a number of template files in my git repository which change at different rates. These are then used to generate HTML pages. If someone reports a problem, I want them to

2条回答
  •  日久生厌
    2021-02-13 07:42

    Specify a template that does what you want when cloning, or supply a repo-setup script and type sh repo-setup after cloning, or put the necessary commands in a paragraph in the README and say V}!sh or however your editor pipes commands through the shell, or use git archive for distribution rather than git push, since that supports arbitrary keyword substitution. Turning a bare git clone into a code-injection vector seems like a bad price to pay to avoid trivial inconveniences like this.

提交回复
热议问题