美文网首页
安装TortoiseSVN

安装TortoiseSVN

作者: 穿越平行宇宙 | 来源:发表于2019-05-12 09:26 被阅读0次

一、安装SVN

1.由于Android Studio没有提供单独的插件,只能和SVN客户端关联使用
所以,SVN下载地址:https://tortoisesvn.net/downloads.html

image.png
2.SVN安装
ps:需安装 command line功能
image.png
之后,一路next即可。

3.svn注意点:

3.1. 需要重启电脑,右键才会出现svn的各种菜单。
3.2. 若是直接打开TotoseSVN客户端,会出现以下提示:

 tortoisesvn is a shell extension
 that means it is integrated into the windows explorer.
 to use tortoisesvn please open the explorer and right-click on 
 any folder you like to bring up the context menu where you will find all tortoisesvn commands.

因此,svn不直接以客户端运行,需对文件进行操作。

二、AndroidStudio 上SVN的使用

  1. AndroidStudio配置 svn:

步骤:打开Android Studio–>File–>Setting–>Version Control–>Subversion

image.png

配置svn路径:在上图中的Use Command Line Client中添加svn.exe, svn默认路径C:\Program Files\TortoiseSVN\bin\svn.exe。

若是不存在svn.exe,则安装TotoseSVN未安装command line功能,需重新安装。

  1. Android Studio添加忽略文件以及上传项目到svn:

上传项目到svn前需添加忽略文件
步骤:打开Android Studio–>File–>Setting–>Version Control–>Ignored Files –添加忽略的文件

androidStudio提供了三种选择忽略规则:

Ignore specified file:忽略指定文件
Ignore all files under:忽略文件夹下所有文件
Ignore all files mathching: 忽略符合匹配规则的文件。

SVN中文件忽略规则:.ide文件 、 .gradle文件 、 所有的build文件(包含module中build) 、 所有的.iml文件 、local.properties 文件

依次添加完忽略文件,如下图所示:


image.png

相关文章

网友评论

      本文标题:安装TortoiseSVN

      本文链接:https://www.haomeiwen.com/subject/dvumnqtx.html