.gitignore配置
来源:互联网 发布:北京理工大学软件学院 编辑:程序博客网 时间:2024/05/16 05:50
.gitignore 配置文件用于配置不需要加入版本管理的文件,配置好该文件可以为我们的版本管理带来很大的便利,以下是个人对于配置 .gitignore 的一些心得。
1、配置语法:
以斜杠“/”开头表示目录;
以星号“*”通配多个字符;
以问号“?”通配单个字符
以方括号“[]”包含单个字符的匹配列表;
以叹号“!”表示不忽略(跟踪)匹配到的文件或目录;
此外,git 对于 .ignore 配置文件是按行从上到下进行规则匹配的,意味着如果前面的规则匹配的范围更大,则后面的规则将不会生效;
2、示例:
(1)规则:fd1/*
说明:忽略目录 fd1 下的全部内容;注意,不管是根目录下的 /fd1/ 目录,还是某个子目录 /child/fd1/ 目录,都会被忽略;
(2)规则:/fd1/*
说明:忽略根目录下的 /fd1/ 目录的全部内容;
(3)规则:
/*
!.gitignore
!/fw/bin/
!/fw/sf/
说明:忽略全部内容,但是不忽略 .gitignore 文件、根目录下的 /fw/bin/ 和 /fw/sf/ 目录;
阅读全文
0 0
- gitignore配置
- gitignore配置
- .gitignore 配置
- .gitignore配置
- drupal6 常用 .gitignore 配置
- .gitignore 常用配置
- kernel常用.gitignore配置
- git gitignore文件配置
- .gitignore 文件配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- git 的 .gitignore 配置
- git的.gitignore配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- gitignore的配置
- 解决:预制apk到镜像出现 java.lang.UnsatisfiedLinkError: No implementation found for*****
- 识别SQL Server 性能杀手
- IO设计模式:Reactor和Proactor对比
- android Log调试
- Call From master.hadoop/192.168.31.149 to master.hadoop:8020 failed on connection exception: java.ne
- .gitignore配置
- 73. Set Matrix Zeroes
- Ubuntu 下如何查看已安装的软件
- Python学习(七)——列表生成式、生成器
- System.setOut()重定向输出解释
- 二叉搜索树的删除和添加
- Android:控件GridView的使用
- ES6中的模块
- zbar+opencv配合实现条码识别