What should be in my .gitignore for an Android Studio project?提交到git上的文件
2017-08-30 16:10
627 查看
Update: Since Android Studio 2.2, new projects are created with this gitignore
file:
Verify if it suits your needs and if not, read on.
Previous:
A late answer but none of the answers here and here was
right on the money for us...
So, here's our gitignore file:
Optional - for older project format, add this section to your gitignore file:
This file should be located in the project's root folder and not inside the project's module folder.
file:
*.iml .gradle /local.properties /.idea/workspace.xml /.idea/libraries .DS_Store /build /captures .externalNativeBuild
Verify if it suits your needs and if not, read on.
Previous:
A late answer but none of the answers here and here was
right on the money for us...
So, here's our gitignore file:
#built application files *.apk *.ap_ # files for the dex VM *.dex # Java class files *.class # generated files bin/ gen/ # Local configuration file (sdk path, etc) local.properties # Windows thumbnail db Thumbs.db # OSX files .DS_Store # Eclipse project files .classpath .project # Android Studio *.iml .idea #.idea/workspace.xml - remove # and delete .idea if it better suit your needs. .gradle build/ #NDK obj/
Optional - for older project format, add this section to your gitignore file:
/*/out /*/*/build /*/*/production *.iws *.ipr *~ *.swp
This file should be located in the project's root folder and not inside the project's module folder.
相关文章推荐
- Android Studio开发中途使用gitignore文件进行提交忽略
- Android studio项目忽略某些文件提交Git
- Archive for required library: '/libs/android-support-v4.jar' in project '' cannot be read or is not
- AndroidStudio .gitignore忽略文件
- Android Studio Git .gitignore操作(版本控制应该忽略的文件)
- Android Studio Git .gitignore文件简洁正确的写法
- .gitignore for android studio
- Android studio项目忽略某些文件提交Git
- Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?an
- Buttons in button bars should be borderless; use style="?android:attr/buttonBarButtonStyle" (and ?an
- 50 Android Studio Tips, Tricks & Resources you should be familiar with, as an Android Developer
- android提交GIT .gitignore过滤文件配置信息
- What can I learn right now in just 10 minutes that could be useful for the rest of my life?
- git add . 提交时报错warning: LF will be replaced by CRLF in .gitignore.
- Android Studio project with path '... ' could not be found in project ' app' 报错解决方案
- What can I learn right now in just 10 minutes that could be useful for the rest of my life?
- Android Studio忽略文件的详细配置及说明--Gitignore文件
- 01Android_Studio过滤文件提交至Git
- Android Studio SVN配置忽略文件 1.用Android Studio创建一个项目,会在根目录和Module目录下自动生成.gitignore文件,貌似是Git的配置文件,
- android in practice_Maintaining preferences(MyMoviesdatabase project)