首页 > 其他 > 详细

Git使用gitignore建立项目过滤规则

时间:2015-03-20 11:09:23      阅读:357      评论:0      收藏:0      [点我收藏+]

# Local per-repo rules can be added to the .git/info/exclude file in your

# repo. These rules are not committed with the repo so they are not shared

# with others. This method can be used for locally-generated files that you

# don’t expect other users to generate, like files created by your editor.

.settings

.classpath

bin

coverage

coverage.ec

coverage.em

gen

javadoc

junit-report.xml

lint-results.*ml

lint-results_files

local.properties

monkey.txt

*~

*.iws

atlassian-ide-plugin.xml

target

build

.gradle

out

build.xml

proguard-project.txt

.idea/

*.iml

========================================================================

改动过.gitignore文件之后,在repo的根目录下运行:
git rm -r --cached .
git add .
之后可以进行提交:
git commit -m "fixed untracked files"


Git使用gitignore建立项目过滤规则

原文:http://my.oschina.net/u/244918/blog/389341

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