Ignore a tracked file for changes

时间:2018-12-03 13:04:18

标签: git gitignore

I have a local file that must be ignored for changes. But I also have a template of it in the repo, to guide the user creating it.

I added it to .gitignore to not have it polluting git status, but it still does.

Is it possible to have it ignored for changes, but at the same time making sure it IS in the repo, and retrieved on a git clone?

0 个答案:

没有答案