首页 > 其他 > 详细

Git的版本控制

时间:2015-03-24 13:08:35      阅读:251      评论:0      收藏:0      [点我收藏+]


git提交代码文件时怎么过滤掉某个文件夹

[git 创建 .gitignore 文件过滤规则及注意事项]

[Git 过滤文件,控制上传 ]

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:

Git的版本控制

原文:http://blog.csdn.net/pipisorry/article/details/44588351

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!