Git 常用操作(六) .gitignore 配置
来源:互联网 发布:乐知少儿英语地址 编辑:程序博客网 时间:2024/06/05 15:16
Section1 新增文件
..gitignore文件和.git 文件夹在同目录下
.gitignore文件配置如下
*.d
现在新增一个test14.d
执行 git add .
commit 发现没有可以提交的文件
再增加一个文件 test15.txt
git add .
commit 发现可以提交test15.txt
证明.gitignore文件生效
Section2 已经追踪的文件
.gitignore 文件对于已经追踪的文件不生效!
如果想要去除已经追踪的文件,则使用如下命令
git rm test2.txt --cached
这时再修改test2.txt 怎么样都不会被追踪了
阅读全文
0 0
- Git 常用操作(六) .gitignore 配置
- git常用gitignore配置
- Git 的 .gitignore 配置说明 (C#)
- git gitignore文件配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- git 的 .gitignore 配置
- git的.gitignore配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- Git 的 .gitignore 配置
- 架构师之路-如何建立高可用消息中间件kafka
- 铺设网络(最小生成树)
- 【安全牛学习笔记】sslh
- Android 工作中的一些笔记
- HttpClient学习记录
- Git 常用操作(六) .gitignore 配置
- Ubuntu16.04+cuda8.0+cudnn6.0+tensorflow(三)
- sql学习日志1
- 根据url获得domain
- Lua local
- Linux select TCP并发服务器与客户端编程
- 网站出现Can not write to cache files解决方法
- Flex布局之学习笔记一(容器属性)
- 3.作用域