CentOS 6.5安裝TortoiseSVN svn 用戶端

來源:互聯網
上載者:User

標籤:centos   tortoisesvn   svn   版本控制系統   subversion   

TortoiseSVN:

TortoiseSVN 是 Subversion 版本控制系統的一個免費開源用戶端,可以超越時間的管理檔案和目錄。檔案儲存在中央版本庫,除了能記住檔案和目錄的每次修改以外,版本庫非常像普通的檔案伺服器。你可以將檔案恢複到過去的版本,並且可以通過檢查曆史知道資料做了哪些修改,誰做的修改。這就是為什麼許多人將 Subversion 和版本控制系統看作一種“時間機器”。

環境說明:

系統版本:CentOS 6.5,核心(uname -r):2.6.32-431.el6.x86_64

安裝命令:

yum install -y subversion

SVN用戶端命令:

查看svn命令協助:

svn help

查看子命令協助:

svn checkout --help

checkout (co): Check out a working copy from a repository.usage: checkout URL[@REV]... [PATH]  If specified, REV determines in which revision the URL is first  looked up.  If PATH is omitted, the basename of the URL will be used as  the destination. If multiple URLs are given each will be checked  out into a sub-directory of PATH, with the name of the sub-directory  being the basename of the URL.  If --force is used, unversioned obstructing paths in the working  copy destination do not automatically cause the check out to fail.  If the obstructing path is the same type (file or directory) as the  corresponding path in the repository it becomes versioned but its  contents are left ‘as-is‘ in the working copy.  This means that an  obstructing directory‘s unversioned children may also obstruct and  become versioned.  For files, any content differences between the  obstruction and the repository are treated like a local modification  to the working copy.  All properties from the repository are applied  to the obstructing path.  See also ‘svn help update‘ for a list of possible characters  reporting the action taken.Valid options:  -r [--revision] ARG      : ARG (some commands also take ARG1:ARG2 range)                             A revision argument can be one of:                                NUMBER       revision number                                ‘{‘ DATE ‘}‘ revision at start of the date                                ‘HEAD‘       latest in repository                                ‘BASE‘       base rev of item‘s working copy                                ‘COMMITTED‘  last commit at or before BASE                                ‘PREV‘       revision just before COMMITTED  -q [--quiet]             : print nothing, or only summary information  -N [--non-recursive]     : obsolete; try --depth=files or --depth=immediates  --depth ARG              : limit operation by depth ARG (‘empty‘, ‘files‘,                            ‘immediates‘, or ‘infinity‘)  --force                  : force operation to run  --ignore-externals       : ignore externals definitionsGlobal options:  --username ARG           : specify a username ARG  --password ARG           : specify a password ARG  --no-auth-cache          : do not cache authentication tokens  --non-interactive        : do no interactive prompting  --trust-server-cert      : accept unknown SSL server certificates without                             prompting (but only with ‘--non-interactive‘)  --config-dir ARG         : read user configuration files from directory ARG  --config-option ARG      : set user configuration option in the format:                                 FILE:SECTION:OPTION=[VALUE]                             For example:                                 servers:global:http-library=serf
svn list --help

list (ls): List directory entries in the repository.usage: list [TARGET[@REV]...]  List each TARGET file and the contents of each TARGET directory as  they exist in the repository.  If TARGET is a working copy path, the  corresponding repository URL will be used. If specified, REV determines  in which revision the target is first looked up.  The default TARGET is ‘.‘, meaning the repository URL of the current  working directory.  With --verbose, the following fields will be shown for each item:    Revision number of the last commit    Author of the last commit    If locked, the letter ‘O‘.  (Use ‘svn info URL‘ to see details)    Size (in bytes)    Date and time of the last commitValid options:  -r [--revision] ARG      : ARG (some commands also take ARG1:ARG2 range)                             A revision argument can be one of:                                NUMBER       revision number                                ‘{‘ DATE ‘}‘ revision at start of the date                                ‘HEAD‘       latest in repository                                ‘BASE‘       base rev of item‘s working copy                                ‘COMMITTED‘  last commit at or before BASE                                ‘PREV‘       revision just before COMMITTED  -v [--verbose]           : print extra information  -R [--recursive]         : descend recursively, same as --depth=infinity  --depth ARG              : limit operation by depth ARG (‘empty‘, ‘files‘,                            ‘immediates‘, or ‘infinity‘)  --incremental            : give output suitable for concatenation  --xml                    : output in XMLGlobal options:  --username ARG           : specify a username ARG  --password ARG           : specify a password ARG  --no-auth-cache          : do not cache authentication tokens  --non-interactive        : do no interactive prompting  --trust-server-cert      : accept unknown SSL server certificates without                             prompting (but only with ‘--non-interactive‘)  --config-dir ARG         : read user configuration files from directory ARG  --config-option ARG      : set user configuration option in the format:                                 FILE:SECTION:OPTION=[VALUE]                             For example:                                 servers:global:http-library=serf
svn list使用樣本:

svn list svn://192.168.231.1/SVNHome

遇到連線逾時的錯誤:


查看串連的IP上是否已經啟動SVN服務,檢查防火牆連接埠開放狀態。

解決連通問題之後,會提示輸入“root”使用者的密碼,如:


這裡使用其它使用者訪問,直接斷行符號就可以了,然後提示輸入使用者名稱,輸入完成斷行符號,

然後提示輸入密碼,輸入完成斷行符號,如果輸入正確就可以看到類似的資訊了。

svn checkout使用樣本:

先建立一個目錄,例如:mkdir test

檢出到test目錄下

svn checkout svn://192.168.231.1/SVNHome ./test

由於之前已經選擇儲存密碼了,所以這裡不再需要驗證,輸出如:


Checked out revision 10.檢出成功,去test目錄下看看吧。

CentOS 6.5安裝TortoiseSVN svn 用戶端

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.