码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-03-20 11:12:29      阅读:150      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!