1,下載TortoiseSVN,在下載時選擇command line client tools,選擇第一個,不然不能和Android Studio關聯
2.關聯svn
打開Android Studio,點擊右上角file,點擊setting(快捷方式Ctrl+Alt+s),打開設置頁面,Version Contronl--subversion,配置svn安裝包的路徑
3,添加忽略文件
打開Android Studio,點擊右上角file,點擊setting(快捷方式Ctrl+Alt+s),打開設置頁面,Version Contronl--Igonred Files,右上角的 + ,點擊一定要在上傳代碼之前添加
Ignore specified file忽略文件
Ignore all files under 忽略指定文件
Ignore all files matching 忽略指定匹配規則文件
我忽略的文件就是以上者這些 local.properties ,.idea,.gradle,build ,.iml
4.忽略文件添加之後,可以關聯svn的地址,根據下圖,完成配置
配置我一般選擇第2個,