VSS控制台常用命令

       实例介绍几个常用的VSS控制台常用命令。

       格式说明:

               >     为输入命令

               #     为注释说明

               > 与 #行间为控制台输出内容

        

. 登录       
        启动GUI登录:
        >ssexp -s//192.168.1.2/vss -yuser,user
       

        命令行登录:
        >set ssdir=//127.0.0.1/CompanyDEV
        >set ssuser=user
        >set sspwd=user
        >ss cp $
        本地连接时问题:Unable to open user login file //127.0.0.1/CompanyDEV/data/loggedin/user.log.
        设置共享目录,通过“工具”->“查看”取消简单共享设置。通过设置共享->权限精确控制访问权限

 

. 创建Project
        >ss create $/CommonSolutions
        Comment for $/CommonSolutions:
        Collection of generate solutions.
        $/CommonSolutions       
        # 无选项,要求输入comment,当前目录不变

        >ss dir
        $/:
        $CommonSolutions
        1 item(s)

        >ss create $/ProductSolutions -C"Solution of product ." -S
        $/ProductSolutions
        Setting current project to $/ProductSolutions
        # -C添加注释,-S创建Project自动跳转到新创建目录

        >ss dir
        $/ProductSolutions:
        No items found under $/ProductSolutions

 

. 添加
        #VS IDE添加   创建好解决方案、工程,将解决方案添加到源代码管理

       

        >ss Add . -R,把当前目录的所有文件及文件夹(包括子文件夹、文件)添加到当前项目

 

. Label
        >ss Label -C"Initially add at 2008.9.22" -LV1
        UtilitiesSolution
        # 标记当前Project
        # -V 这个选项是指定要操作的项目的版本,如果要制定label(如果get时),采用参数 -VL, 后面带label号
       
        >ss label $/CommonSolutions/SccFileCleanerSln -C@SFCS.txt -VL080923V1.0 -L080923V1.0 -i-y
        # 将删除label,label comment无法修改

 

. 指定版本
        -V14                    Displays version 14.
        -Vd2-29-92              Displays the version dated 2-29-92.
        "-VLFinal Beta"         Displays the version with the label Final Beta.

        另一种方法
        Help.C;14               Displays version 14 of Help.C.
        Show.prg;d2-29-92       Displays Show.prg as it appeared on 2-29-92.
        "$/CW;L Beta 1"         Displays the version of the project $/CW with the label Beta 1.


. 查看状态
        >ss status modify.txt
        modify.txt          user         Exc  08-09-22 19:45
        F:/CompanyDEV/CommonSolutions/UtilitiesSolution/Utilities

 

. CheckIn
        >ss checkin modify.txt
        $/CommonSolutions/UtilitiesSolution/Utilities/modify.txt was checked out from F:/CompanyDEV/CommonSolutions/UtilitiesSolution/Utilities, not from the current folder.
        Continue anyway?(Y/N)n

        >f:
        F:/>cd F:/CompanyDEV/CommonSolutions/UtilitiesSolution/Utilities
        F:/CompanyDEV/CommonSolutions/UtilitiesSolution/Utilities>ss checkin modify.txt
        Comment for modify.txt:
        # 不加-C提示输入comment

 

. Show history
        >ss history modify.txt -#3
        # 显示某项的最近3个历史
        >ss history $/ -L
        # 查看目录中有label的项的历史
        >ss history $/ -L -R
        # 查看目录中文件及子目录中文件有label的项的历史

        # 加label注释的时候,说明:标记的对象,状态,原因,日期

        >ss history $/test -vd3/03/95;3:00p~3/03/95;9:00a
        # 查看$/test中3/3/95,9:00a - 3:00p的历史。时间从大到小

 

. Get
        >ss get * -R -VL080923llyV1
        # 指定Project label, 获取当前Project中文件包括subprojects

        >ss get * -R -VL080923llyV1 -GLf:/test/CommonSolutions/UtilitiesSolution2
        Set f:/test/CommonSolutions/UtilitiesSolution2 as the default folder for project
         $/CommonSolutions/UtilitiesSolution?(Y/N)n
        # 指定本地目录采用参数 -GL,后面带本地目录, 必须保证本地目录存在, 会提示是否将其设置为默认working folder, 可以用-I-n设置自动回答No
        >ss get * -R -VL080923llyV1 -GLf:/test/CommonSolutions/UtilitiesSolution2 -i-n
        # -W 获取writeable文件备份

 

. View
        >ss view modify.txt

 

. whoami
        >ss whoami

 

. workfold
        >ss workfold $/prject c:/project
        # Note that both the project and the directory are optional. If either one is not specified, the current project or folder is used.

 

. Force_dir
        Force_dir = true , get的文件放到设置的work folder中,否这获取到当前folder

 

. 注释
        -C         All items receive the same comment
        -C-        No comment is used.
        -Ctext
        -C@file.txt        Uses the contents of File.txt as the comment for all items

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值