什么是在SVN资源库中导入一个Android Studio项目的正确方法?是在、库中、正确、方法

2023-09-07 16:57:26 作者:月酱.

我想在我的SVN库中导入一个Android Studio项目。我试过obiviously

I'm trying to import an Android Studio project in my SVN repository. I obiviously tried

VCS->导入到版本控制 - >导入到颠覆...

VCS->Import into Version Control->Import into Subversion...

但问题是,即使取消选中包含忽略资源中,该软件基本保持在上载该项目文件夹SVN的所有文件。我也试着做共享项目(颠覆),并没有任何上传(只是创建远程文件夹):当我尝试提交,它要上传的所有文件像导入选项。

but the problem is that, even unchecking the Include ignored resources box, the software keeps uploading basically all the files in the project folder to SVN. I also tried to do Share Project (Subversion) and it doesn't upload anything (just creates the remote folder): when i try to commit, it wants to upload all files like the import option.

我也试着玩了一下与svn:ignore属性,但没有多少运气

I also tried to play a bit with the svn:ignore property, but with not much luck.

我的问题是:

什么是做到这一点的最好方法是什么?不应该的Andr​​oid Studio自动利用这些后事?如果没有,为什么?

感谢您的帮助。

推荐答案

您是在正确的轨道上,使用svn:忽略是一个模板/列表定义颠覆应该忽略的文件。如果你正在做这在Windows上,我建议使用有一个很好的资源管理器中集成的图形用户界面,使生活变得更轻松自由TortoiseSVN的客户端。这只是右击一个文件 - > TortoiseSVN的 - >添加到忽略列表

You're on the right track, the svn:ignore is a template/list to define files that subversion should ignore. If you're doing this on Windows I suggest using free TortoiseSVN client that has a nice explorer-integrated GUI to make life much easier. It's just right click on a file -> TortoiseSVN -> add to ignore list.

另外,刚刚在这里找到一个职位有实际的svn:忽略自己的项目列表:What使用文件,我应该加入到SVN忽略了项目的Andr​​oid工作室

Also, just found a post here that has the actual svn:ignore list for your projects: What files should I add to SVN ignore in an Project using Android Studio

编辑,根据意见,并补充名单:

Edited, as per comments, adding the list:

gradle
.idea
*.iml
build
.DS_Store ( => for mac only)