svn 使用方法 (1)


我们将最新的 SVN 下下来,然后将其安装到本地。直接点 finish 就 okay 了!
二 Andorid Studio 设置(然后在 AS 里面配置一下 SVN,到这里 SVN 的配置就完成了。)
File-〉Setting-〉VersionControl-〉Subversion,在右边第一栏选中 svn.exe 文件,默认安装在 C:\Program Files\TortoiseSVN\bin\svn.exe。一般屏幕过窄,需要手动往右拖拽才能看到选中按钮哦。

三 检查忽略
File-〉Setting-〉VersionControl-〉Ignored Fils
忽略选项如下
文件
local.properties
文件夹
.gradle
.idea
build
app/build
所有文件
*.iml

四 在远程仓库创建项目
1、 关联服务器
VCS-〉Import into Version Control-〉Share Project(Subversion)


2、提交代码
和服务器关联成功后,会出现

,其中左侧是下载更新,右侧是上传。点右侧按钮,将代码提交到服务器。

注意:提交之后需要检查项目目录,如果还是“+”,需要手动提交,鼠标右键然后点 SVN commit。

五 首次检出项目



然后一路 next,ok 就开始检出

评论