Track local ignored files with Git

自古美人都是妖i 提交于 2019-11-29 08:14:54

This is a bit hackish, but how about symlinking them from a separate repo into your main project?

VonC

First, you can add an ignored file to the index and commit it.
You just need to to git add --force -- /path/to/file.

Second, you can add the setup files themselves: they contain private data.
You may consider the template approach, based on a content filter driver which, on checkout, would generate those files (as private non-versioned files) based on:

  • template files (versioned)
  • value files (stored elsewhere, with the right value for each developer's environment)

See for instance "How to keep different content of one file in my local and github repository?"

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!