.gitignore文件的使用
2013-04-25 01:05
381 查看
1.新建了一个test2文件
2.使用git status命令发现test2文件出现在为跟踪状态中
3.创建.gitignore文件,输入test2
4.使用git status命令察看,发现未跟踪状态中没有test2文件了,但是.gitignore出现了,自己可以在.gitignore文件中添加进去
2.使用git status命令发现test2文件出现在为跟踪状态中
3.创建.gitignore文件,输入test2
4.使用git status命令察看,发现未跟踪状态中没有test2文件了,但是.gitignore出现了,自己可以在.gitignore文件中添加进去
vi test2 git status # On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # test2 nothing added to commit but untracked files present (use "git add" to track) vi .gitignore git status # On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # .gitignore nothing added to commit but untracked files present (use "git add" to track)
相关文章推荐
- GIT常用命令 && GIT本地使用 && GIT报错解决 && GIT的忽略文件(ignore files)
- 使用Git版本控制 .gitignore 忽略不需要提交的文件
- Github使用gitignore忽略增加指定文件
- 使用 .gitignore来忽略某些文件【转】
- Github使用gitignore忽略增加指定文件
- Github使用gitignore忽略增加指定文件
- 经验总结-完整介绍Android Studio中Git的使用之.gitignore和README文件的说明(五)
- 【GitHub】GitHub .gitignore文件简单配置使用
- git使用之二——.gitignore文件详解
- Github使用gitignore忽略增加指定文件
- Github使用gitignore忽略增加指定文件
- Github使用gitignore忽略增加指定文件
- git使用.gitignore忽略某些文件
- git 之忽略文件 gitignore 创建和使用规则
- 解决为什么Git中有时候使用.gitignore也无法忽略一些文件
- Github使用gitignore忽略增加指定文件
- Github使用gitignore忽略增加指定文件
- 【Android】使用Git控制Android程序的gitignore文件
- SmartGit使用总结之忽略文件.gitignore
- Github使用gitignore忽略增加指定文件