zno2

.gitignore

创建.gitignore 文件

1. 在需要创建  .gitignore 文件的文件夹, 右键选择

Git Bash 进入命令行,进入项目所在目录。

2. 输入 touch .gitignore 在文件夹就生成了一个“.gitignore”文件。

然后在”.gitignore” 文件里输入你要忽略的文件夹及其文件就可以了。

排除文件

http://git-scm.com/docs/gitignore/

 

举例:

target/
.project
.classpath
.factorypath
.settings

 

.git 所在目录或者子目录包含.gitignore 就可以生效

posted on 2016-08-05 18:12  zno2  阅读(113)  评论(0编辑  收藏  举报

导航