- 论坛徽章:
- 9
|
回复 4# dylasd
恩,查了一下,确定加不进去。git只加目录、常规文件、符号文件。
No, Git will not track device files at all (currently). Here's a comment from dir.c, read_directory_recursive (v1.7.8.5) function which is used when you do git add .:
* Read a directory tree. We currently ignore anything but
* directories, regular files and symlinks. That's because git
* doesn't handle them at all yet. Maybe that will change some
* day.
Git tracks contents, not files. So trying to make it track device files doesn't really fit - they don't really have content in a traditional sense.
An approach that would work is to create a script that creates/"installs" the device files your application/project needs (including fifos or whatever else you might need). Git can track that very effectively, and it's a handy form to have that in for an installer (or for other people using your tree).
http://superuser.com/questions/440873/git-unable-add-device-file |
|