首页 > 其他 > 详细

代码托管之SVN

时间:2014-01-21 01:17:55      阅读:441      评论:0      收藏:0      [点我收藏+]

在工作和学习中,我们经常需要托管一些重要的文件,常用的托管工具有SVN,GIT.两者都是非常不错的。

以前经常用,没有写过一些总结性的文档,导致今天再用的时候,发现都忘记了;由此教训,就记录下如何在google上建立自己的svn代码托管。

进入:https://code.google.com/intl/zh-CN/ 登录

bubuko.com,布布扣

图1 Create New Project

点击 Create a new project 出现如下界面:

bubuko.com,布布扣

图2 Regiser

注意:因为咱们要用svn服务器,所以这里选Subversion,Source code license 选 Apache License 2.0

然后输入验证码,创建成功!进入代码管理界面:

bubuko.com,布布扣

图3 project

然后点击 Source 进入Source管理界面

bubuko.com,布布扣

图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/


代码托管之SVN

原文:http://blog.csdn.net/ieczw/article/details/18318085

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!