git 忽略不想上传的文件

来源:互联网 发布:淘宝鹊桥软件 编辑:程序博客网 时间:2024/05/18 19:36

1.如已经上传了,那需要先git rm -rf 先关文件
2.创建.gitignore文件,在当前工程目录

3.规则

   *.log,所有log文件

   test/ 测试目录下的所有文件

   test.xml 指定具体文件

转载文件:http://www.tuicool.com/articles/7vQZre7

0 0
原创粉丝点击