Mercurial .hgignore for Android Studio projects

前端 未结 4 875
灰色年华
灰色年华 2020-12-29 06:35

What files should be ignored in Mercurial when using Android Studio (1.0 RC4 Windows) for development?

Creating new application project also creates .gitignore

4条回答
  •  情话喂你
    2020-12-29 07:22

    I suggest you add all the files listed above to .hgignore except for the build.gradle and settings.gradle. The files in .idea directory are generated automatically by Android Studio and you shouldn't track them, or manually edit. I don't think you will ever need to edit gradlew or gradlew.bat so you can ingore them also. You can add gradle.properties and gradle-wrapper.properties later, when you will need to change the default versions (personally, I've these two to ignore also).

提交回复
热议问题