git提交代码文件时怎么过滤掉某个文件夹
[git 创建 .gitignore 文件过滤规则及注意事项]
Note:
1. 工程目录下找到.git/info/exclude,把要排除的文件写进去
e.g.
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with ‘#‘ are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.idea/
datasets/
test/
test27/
launcher0
launcher7133709813684183199
semanticpy-master.zip
{亲测有效}
from:
原文:http://blog.csdn.net/pipisorry/article/details/44588351