使用cvs或svn从sourceforge上获取开源项目的方法[转载]
生活随笔
收集整理的這篇文章主要介紹了
使用cvs或svn从sourceforge上获取开源项目的方法[转载]
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
著名開源軟件網站(www.sourceforge.net)上面的開源項目,大部分使用的管理工具為cvs或svn。 這兩種軟件的代表客戶端程序是wincvs和tortoiseSVN。 1.cvs CVS (Concurrent Versions System) is a tool used by many software developers to manage changes within their source code tree. CVS provides the means to store not only the current version of a piece of source code, but a record of all changes (and who made those changes) that have occurred to that source code. Use of CVS is particularly common on projects with multiple developers, since CVS ensures changes made by one developer are not accidentally removed when another developer posts their changes to the source tree. 2.svn SVN (Subversion) is a tool used by many software developers to manage changes within their source code tree. SVN provides the means to store not only the current version of a piece of source code, but a record of all changes (and who made those changes) that have occurred to that source code. Use of SVN is particularly common on projects with multiple developers, since SVN ensures changes made by one developer are not accidentally removed when another developer posts their changes to the source tree 同樣的描述,只不過將cvs替換成了svn。 在sourceforge上的某一個項目上,都會看到一個public的鏈接,這個鏈接提供了想要下載這個項目的cvs或svn地址。點擊 public會看到,cvs repository或 svn repository,點擊這個鏈接會看到項目的下載地址,
比如:
cvs的 [cvs -d:pserver:anonymous@construct.cvs.sourceforge.net:/cvsroot/construct login]
[cvs -z3 -d:pserver:anonymous@construct.cvs.sourceforge.net:/cvsroot/construct co -P modulename] svn的
[svn co https://scummvm.svn.sourceforge.net/svnroot/scummvm scummvm] 同時,你在cvs repository或 svn repository的下面還會看到browse cvs或browse svn這個是用來瀏覽項目目錄的。 如果你使用wincvs,點admin菜單的command line里輸入命令:
cvs -d:pserver:anonymous@construct.cvs.sourceforge.net:/cvsroot/construct login
他會問你password,直接回車就行。
然后,接著在命令行接著鍵入下面的命令: cvs -z3 -d:pserver:anonymous@construct.cvs.sourceforge.net:/cvsroot/construct co -P modulename 這里的modulename就是你在browse cvs里看到的,你想要下載的模塊名,如果你想下載項目的所有文件,modulename寫成 你在browse cvs里看到的根路徑名。
如果,項目是通過svn管理的,則你需要下載tortoiseSVN。tortoiseSVN和wincvs不同,她不是一個帶界面的軟件,安裝完 之后,會在windows右鍵查單中出現,在你要保存項目的磁盤位置,新建一個文件夾,右鍵該文件夾,會看到一個svn checkout菜單項,點擊后,彈出一個對話框,在url of repository中輸入上面的: [https://scummvm.svn.sourceforge.net/svnroot/scummvm scummvm],就可以把項目下載下來了。
比如:
cvs的 [cvs -d:pserver:anonymous@construct.cvs.sourceforge.net:/cvsroot/construct login]
[cvs -z3 -d:pserver:anonymous@construct.cvs.sourceforge.net:/cvsroot/construct co -P modulename] svn的
[svn co https://scummvm.svn.sourceforge.net/svnroot/scummvm scummvm] 同時,你在cvs repository或 svn repository的下面還會看到browse cvs或browse svn這個是用來瀏覽項目目錄的。 如果你使用wincvs,點admin菜單的command line里輸入命令:
cvs -d:pserver:anonymous@construct.cvs.sourceforge.net:/cvsroot/construct login
他會問你password,直接回車就行。
然后,接著在命令行接著鍵入下面的命令: cvs -z3 -d:pserver:anonymous@construct.cvs.sourceforge.net:/cvsroot/construct co -P modulename 這里的modulename就是你在browse cvs里看到的,你想要下載的模塊名,如果你想下載項目的所有文件,modulename寫成 你在browse cvs里看到的根路徑名。
如果,項目是通過svn管理的,則你需要下載tortoiseSVN。tortoiseSVN和wincvs不同,她不是一個帶界面的軟件,安裝完 之后,會在windows右鍵查單中出現,在你要保存項目的磁盤位置,新建一個文件夾,右鍵該文件夾,會看到一個svn checkout菜單項,點擊后,彈出一個對話框,在url of repository中輸入上面的: [https://scummvm.svn.sourceforge.net/svnroot/scummvm scummvm],就可以把項目下載下來了。
轉載于:https://www.cnblogs.com/SFAN/p/3722095.html
總結
以上是生活随笔為你收集整理的使用cvs或svn从sourceforge上获取开源项目的方法[转载]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [原]2011年度生活三层总结
- 下一篇: 用ASP.NET 2.0设计网络在线投票