How do you deal with file ownership in git?

前端 未结 4 544
抹茶落季
抹茶落季 2021-01-02 18:20

I\'m working on an embedded Linux project. Our build process makes an image that gets flashed to a device. Many of our files require root ownership for the system to work co

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-02 18:50

    To build on Karmastan's answer, the magic words here are "build script".

    Files in git don't have to look like the deployment versions. You don't deploy .c files -- you compile them first. Likewise some config files can go through a build process before being deployed/installed, also.

提交回复
热议问题