Linux文件系统骨架版控件

时间:2022-03-20 18:43:02

We are doing some embedded Linux project, the vendor provides us a basic filesystem skeleton, and we would like to put it into the version control system (GIT), but there are some special files which GIT does not like, for example, the device file, the pipe files, etc. I wounder if anyone have a better suggestion to put a filesystem under version control? Thanks!

我们正在做一些嵌入式Linux项目,供应商为我们提供了一个基本的文件系统框架,我们想把它放到版本控制系统(GIT)中,但有一些GIT不喜欢的特殊文件,例如设备文件,管道文件等。如果有人有更好的建议将文件系统置于版本控制之下,我是否更加干净?谢谢!

2 个解决方案

#1


1  

Two choices;

两种选择;

1) either put the script which creates the nodes in /dev and the like under version control, and have your build system execute that script.

1)在版本控制下放置在/ dev等中创建节点的脚本,让你的构建系统执行该脚本。

or

要么

2) Make a dd of the basic file system to a plain file, and put that dd resulting file under version conntrol

2)将基本文件系统的dd设置为普通文件,并将该dd结果文件放在版本控制下

#2


1  

There are some script for keeping dev files with git, eg: EtcKeeper http://kitenet.net/~joey/code/etckeeper/

有一些脚本用于保存dev文件与git,例如:EtcKeeper http://kitenet.net/~joey/code/etckeeper/

#1


1  

Two choices;

两种选择;

1) either put the script which creates the nodes in /dev and the like under version control, and have your build system execute that script.

1)在版本控制下放置在/ dev等中创建节点的脚本,让你的构建系统执行该脚本。

or

要么

2) Make a dd of the basic file system to a plain file, and put that dd resulting file under version conntrol

2)将基本文件系统的dd设置为普通文件,并将该dd结果文件放在版本控制下

#2


1  

There are some script for keeping dev files with git, eg: EtcKeeper http://kitenet.net/~joey/code/etckeeper/

有一些脚本用于保存dev文件与git,例如:EtcKeeper http://kitenet.net/~joey/code/etckeeper/