用 git 的时候需要配置 gitignore ,按照文件扩展名 ignore 这是没问题的。
有没有办法让 git 按照文件类型来 ignore ?
类似于“先用 file 命令确定文件类型,然后再用文件类型作为参数去 ignore ”,当然具体的实现不一定用 file 命令了。
有没有办法让 git 按照文件类型来 ignore ?
类似于“先用 file 命令确定文件类型,然后再用文件类型作为参数去 ignore ”,当然具体的实现不一定用 file 命令了。

1 alexapollo Oct 14, 2015 |
2 FrankFang128 Oct 14, 2015 via Android 你不能先统一一下文件扩展名么 |
3 Robling Oct14, 2015 via Android 用 git 的钩子脚本动态生成 gitignore |
4 xiuc001 Oct 15, 2015 可以用文件名 ignore ,但要注意的是如果你的文件已经在版本库了,即使你配置了 ignore 文件也是不生效的 |