5 Minutes Guide To Subversion 5分鐘指南顛覆
Subversion is a free open source source code management system (SCM) like CVS, Perforce, ClearCase etc. In this simple 5 minutes guide you will know about some key commands to quickly get started with subversion from ground zero.顛覆罪是一個自由開放源碼的源代碼管理系統(供應鏈管理)一樣,個人簡歷, perforce , ClearCase的等在這簡單的5分鐘,引導你就會知道有關的一些關鍵命令,以盡快開始與顛覆從地面為零。 You may want to print a copy for quick reference.您可能想打印一份為快速參考。
How to create a subversion project? 如何創建一個顛覆的項目呢?
You need to be on the same machine as the repository and know the location of the repository.你要在同一台機器上,作為存放和知道的位置公佈。 Then execute the following command:然後執行以下命令:
svnadmin create /repository/project_name –fs-type fsfs svnadmin創建/儲存/ project_name -財政司司長型fsfs
How to checkout project / directory / file(s) from subversion? 如何結帳項目/目錄/文件( )由顛覆呢?
svn checkout http://repository_host_name/path/project_name [project_name] svn結帳http://repository_host_name/path/project_name [ project_name ]
Notes:註釋:
In the optional second parameter you can specify the directory to download to.在可選的第二個參數,你可以指定目錄下載。
You can specify a directory or even single files using this command.您可以指定一個目錄或什至單一文件使用此命令。
How to update your copy with the latest source code from repository? 如何更新您的複製與最新的源代碼從存放?
svn update project_name svn更新project_name
Notes:註釋:
You do not have to specify the url of the repository because the information is already stored in the directory which was create during checkout (see above).你不須要指定的存放,因為信息是已存儲在目錄中被創建在結帳(見上文) 。
On linux systems you may be prompted for a password.在Linux系統可能會提示您輸入密碼。
How to commit changes to the repository? 如何承諾更改為存放?
To commit any changes to the repository you must specify a comment (hopefully) describing the changes.作出承諾的任何變動都需要存放您必須指定一個評論(希望)描述的變化。
svn commit -m message svn承諾-米訊息
Notes:註釋:
This commits all the changed files to the repository.這一承諾的所有改變,檔案公佈。
The comment should be enclosed in double-quotes ( " )評論應包含在雙引號( “ )
How to get status of a subversion projects? 如何獲得的地位,顛覆項目?
svn stat project_name svn統計project_name
If you want to get detailed status of your project then use:如果你想獲得詳細的地位,您的項目,然後使用:
svn stat –verbose svn的統計詳細
How to add files to a project? 如何將檔案新增的一個項目?
svn add file_name svn添加FILE_NAME的
Then you must commit to propagate the changes to the subversion server.那麼你必須承諾宣傳的變化,以顛覆服務器。
How can you rename a file in subversion? 你如何能重命名文件在顛覆呢?
svn rename old_file_name new_file_name svn重新命名old_file_name new_file_name
Again you must commit to propagate the changes to the subversion server.再次,你必須承諾宣傳的變化,以顛覆服務器。
With these simple commands you can effectively use subversion for most purposes.與這些簡單的命令,您可以有效地利用顛覆對於大多數的目的。
Note: These documents have been adapted from our internal documentation wiki which has been contributed by several persons.注意:這些文件已調整從我們的內部文件的wiki已經作出貢獻的若干人。
Filed under提起下 Headline News頭條新聞 , , How To如何 , , Linux Linux的 , , Open Source Software開放源碼軟件 , , Tech Note技術說明 , , Technology技術 , , Windows在Windows | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |




April 11th, 2008 at 12:20 pm 2008年4月11日在下午12時20分
Nice article.好文章。 It didn’t took me more than five minutes to learn about SVN.它沒有我花了超過五分鐘,以了解svn 。