Storing generated files in Git

前端 未结 3 1847
时光说笑
时光说笑 2021-02-05 20:20

We have a reasonably large, and far too messy code base that we wish to migrate to using Git. At the moment, it\'s a big monolithic chunk that can\'t easily be split into smalle

3条回答
  •  攒了一身酷
    2021-02-05 20:25

    I am not a git-guru, but I guess this could be solved with submodules. Add the precompiled binaries as submodules, to get them then one simply has to do this:

    git submodule update --init
    

    How to ignore changes in submodules is described here. So, if the dev rebuilts something it will NOT be committed with git commit -a and not added with git add .. They just have to make sure they do not commit something from within the submodule directly. This Vimcast shows how to use submodules for keeping your vimfiles under controll, but this should be easy to adapt for your problem.

提交回复
热议问题