什么是在SVN资源库中导入一个Android Studio项目的正确方法? [英] What is the right way to import an Android Studio project in a SVN repository?

查看:160
本文介绍了什么是在SVN资源库中导入一个Android Studio项目的正确方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的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.

我的问题是:


  1. 什么是做到这一点的最好方法是什么?

  2. 不应该的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:忽略自己的项目列表:
<一href=\"http://stackoverflow.com/questions/16940934/what-files-should-i-add-to-svn-ignore-in-an-project-using-android-studio\">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)

这篇关于什么是在SVN资源库中导入一个Android Studio项目的正确方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆