简体   繁体   English

对于 Android Studio 项目,我应该将哪些文件添加到 SVN 忽略?

[英]Which files should I add to SVN ignore for an Android Studio project?

In Eclipse, I had the custom of adding bin and gen directories to SVN ignore.在 Eclipse 中,我习惯于将 bin 和 gen 目录添加到 SVN 忽略。 But now, using Android Studio (based on IntelliJ IDEA), which files should I ignore?但是现在,使用 Android Studio(基于 IntelliJ IDEA),我应该忽略哪些文件?

I added the following items in my .gitignore , it should be the same for SVN:我在我的.gitignore添加了以下项目,对于 SVN 应该是相同的:

  • gradle等级
  • .idea 。主意
  • *.iml *.iml
  • build建造
  • .DS_Store (for mac only) .DS_Store(仅适用于 mac)

See this IntelliJ IDEA KB article: "How to manage projects under Version Control Systems" .请参阅此 IntelliJ IDEA KB 文章: “如何在版本控制系统下管理项目”

Add to Subversion:添加到颠覆:

  • all files under /.idea directory in the project root but ignore workspace.xml and tasks.xml ,项目根目录下/.idea目录下的所有文件,但忽略workspace.xmltasks.xml
  • all .iml module files.所有 .iml 模块文件。

I've used the following SVN ignore list sucessfully:我已成功使用以下 SVN 忽略列表:

.gradle
local.properties
.idea/workspace.xml
.idea/libraries
.DS_Store
build

The ignore should be applied recursively.忽略应递归应用。

Reference: Same question, for git参考: 同样的问题,对于 git

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我应该在SVN上的Android项目中忽略哪些文件 - What files should I ignore in an Android Project on SVN 在Android Studio中可以忽略哪些文件来提交到SVN - Which files to ignore using to commit to SVN in Android Studio 如何将Android项目上传到SVN存储库以及要忽略哪些文件? - How to upload an Android project into SVN repository & which files to ignore? 我刚刚在Eclipse中创建了一个小的android项目,我应该将哪些文件添加到版本控制中? - I have just created small android project in Eclipse, which files I should add to version control? 我应该为Android Studio项目使用哪种编码? - Which encoding should I use for my Android Studio project? 在Subversion中,对于Android Studio项目,我应该忽略哪些文件? - What files should I be ignoring in Subversion for an Android Studio project? 忽略哪些文件用于提交到Eclipse中的SVN - which files to ignore using to commit to SVN in eclipse 在Android Studio项目中取消SVN - Cancel SVN in a Android Studio Project 我应该将哪些java android文件上传到我的SVN服务器? - What java android files should I not upload to my SVN Server? Android-创建项目后,我应该在哪里添加文件(诸如index.html之类的html文件) - Android - Where should I add my files (html files like index.html) after creating project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM