Branching: different config files for release/development

前端 未结 2 1887
失恋的感觉
失恋的感觉 2020-11-30 03:59

I\'ve inherited a project and we are using git. We have a number of environments (dev, test, prod). The previous team basically recreated everything on each instance, using

2条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 04:35

    It sounds like you should read up on git attributes. Check out the section at the bottom of this page

    This is helpful if a branch in your project has diverged or is specialized, but you want to be able to merge changes back in from it, and you want to ignore certain files. Say you have a database settings file called database.xml that is different in two branches, and you want to merge in your other branch without messing up the database file.

提交回复
热议问题