Track local ignored files with Git

前端 未结 2 1608
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 13:07

In our repository some files and folders are ignored. Of interest here are:

  1. Build output folders which contain (among others) some configuration files and exte
相关标签:
2条回答
  • 2020-12-18 13:34

    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)

    smudge

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

    0 讨论(0)
  • 2020-12-18 13:35

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

    0 讨论(0)
提交回复
热议问题