天天看點

在IDEA中使用SVN

目錄

      • IDEA中的相關設定
      • 常用功能
        • 把項目骨架釋出至SVN倉庫
        • 項目常見操作
      • 常見問題
        • IDEA中配置SVN時 ,發現SVN安裝後沒有svn.exe
        • 檢出項目時報錯 Server SSL certificate verification failed: certificate issued
        • 檢出時不彈出svn賬戶、密碼的驗證框
        • 檢出時報錯 The server at 'https://xxx' does not support the HTTP/DAV protocol

在IDEA中使用SVN
在IDEA中使用SVN

在SVN伺服器上建立倉庫,并添加項目組的成員,給成員設定SVN使用者名、密碼。

在IDEA中使用SVN

輸入SVN伺服器複制得到的倉庫位址,驗證該倉庫的SVN使用者名、密碼。

  • checkout 檢出到本地
  • update 拉取更新,也可以更新至指定版本
  • commit 送出到倉庫
  • revert 復原至最近一次拉取

update、commit、revert都可以指定檔案、檔案夾

原因:安裝TortoiseSVN時,command line client tools 沒有選擇 “Will be installed on localhost hard drive”

運作TortoiseSVN的安裝包

在IDEA中使用SVN
在IDEA中使用SVN

第二項選擇 “Will be installed on localhost hard drive”,Next安裝這個工具即可

指令行執行

# https://xxx 是要檢出的svn項目位址
svn ls https://xxx
           

會問xxx是否接受,輸入 p 表示接受;

根據提示依次輸入 電腦目前賬戶的密碼、該SVN倉庫的賬号、密碼;

完成後在IDEA中重試

對桌面單擊右鍵

在IDEA中使用SVN

在Saved Data中clear清處SVN用戶端的緩存資料

在IDEA中使用SVN

清除後,在IDEA中重試

檢出時報錯 The server at ‘https://xxx’ does not support the HTTP/DAV protocol