在工作和学习中,我们经常需要托管一些重要的文件,常用的托管工具有SVN,GIT.两者都是非常不错的。
以前经常用,没有写过一些总结性的文档,导致今天再用的时候,发现都忘记了;由此教训,就记录下如何在google上建立自己的svn代码托管。
进入:https://code.google.com/intl/zh-CN/ 登录
图1 Create New Project
点击 Create a new project 出现如下界面:
图2 Regiser
注意:因为咱们要用svn服务器,所以这里选Subversion,Source code license 选 Apache License 2.0;
然后输入验证码,创建成功!进入代码管理界面:
图3 project
然后点击 Source 进入Source管理界面
图4 Command line access
在linux里面执行如下命令
svn checkout https://soclab.googlecode.com/svn/trunk/
soclab --username iieczw@gmail.com
在提交的时候提示需要输入密码,密码在图4中,提示 When prompted, enter your generated googlecode.com password.
点击那个连接,进去就可以看到密码!
然后呢就可以用了!
[18:43 @ ~ ]$ svn --help usage: svn <subcommand> [options] [args] Subversion command-line client, version 1.6.11. Type ‘svn help <subcommand>‘ for help on a specific subcommand. Type ‘svn --version‘ to see the program version and RA modules or ‘svn --version --quiet‘ to see just the version number. Most subcommands take file and/or directory arguments, recursing on the directories. If no arguments are supplied to such a command, it recurses on the current directory (inclusive) by default. Available subcommands: add blame (praise, annotate, ann) cat changelist (cl) checkout (co) cleanup commit (ci) copy (cp) delete (del, remove, rm) diff (di) export help (?, h) import info list (ls) lock log merge mergeinfo mkdir move (mv, rename, ren) propdel (pdel, pd) propedit (pedit, pe) propget (pget, pg) proplist (plist, pl) propset (pset, ps) resolve resolved revert status (stat, st) switch (sw) unlock update (up) Subversion is a tool for version control. For additional information, see http://subversion.tigris.org/