Git 生成.gitinore忽略文件

Git  生成.gitinore忽略文件
CD到指定目录下:
touch .gitinore

.gitinore忽略文件 三种方法:

# 以'#'开始的行,被视为注释.(#是注释的意思)

# 忽略掉所有文件名是 foo.txt的文件.

foo.txt

# 忽略所有生成的 html文件,

*.html

# foo.html是手工维护的,所以例外.

!foo.html

# 忽略所有.o和 .a文件.

*.[oa]

 

 

posted @ 2016-11-11 10:43  ——暗涌  阅读(1074)  评论(0编辑  收藏  举报