Where to put gitIgnore file in Android Studio?

大憨熊 提交于 2019-12-03 12:31:14

Normally when creating a new project the gitignore file is generated for you.

Here is the correct .gitignore file.

*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures

This is were you have to put it.

.gitignore file must be in the root directory of the project not just in android projects but in any project types

I hope my answer would be useful

Check out this handy page on Github - the ignore files for other types of projects are there as well and regularly updated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!