• cvs常用命令笔记


    cvs常用命令笔记

    cvs常用命令笔记

    1 cvs 常用命令

    公司用的cvs,命令常记不住,所以记录一下。

    1.1 1.创建一个新的仓库

    
    mkdir -p /home/cvsroot/wj_module #创建仓库
    useradd qzt_wj #创建用户
    passwd qzt_wj
    chown -R qzt_wj:cvs wj_module #修改仓库的权限
    cvs -d /home/cvsroot/wj_module/ init #初始化仓库
    vi /etc/xinetd.d/cvspserver; server_args = -f --allow-root=/home/cvsroot/wj_module #增加远程访问权限
    /etc/rc.d/init.d/xinetd restart #重启服务
    
    
    

    1.2 2.导入模块

    
    export CVSROOT=:pserver:qzt_wj@192.168.0.5:/home/cvsroot/wj_module
    cvs login
    input the passwd
    cd beap_app_wj # 一定要进入这一级目录里面再做这些操作。因为在import的时候它会在服务自动创建beap_app_wj目录
    find . -type d -name 'CVS' | xargs rm -rf #
    cvs import -m "beap_app_wj init" beap_app_wj B3V4R7D4_MTB tag_20121105
    
    

    1.3 3.checkout模块

    
    export CVSROOT=:pserver:qzt3473@192.168.0.5:/home/cvsroot/3.4.7.3
    cvs login
    input the passwd
    cvs co beap_app_stat
    cd beap_app_stat
    cvs status -v | more
    cd ..
    rm -rf beap_app_stat
    cvs co -r B3V4R7D3 beap_app_stat
    
    

    1.4 4.commit更新代码

    
    export CVSROOT=:pserver:qzt_imi@192.168.0.5:/home/cvsroot/imi_module
    cvs login
    cvs co -r B3V4R7D4 beap_app_imi # 这里检出的时候要用branch来检出,不能用tag来检。
    cd beap_app_imi/src/  # 然后进去修改代码
    cd .. # 一定要退回一级目录下才能commit有效
    cvs commit -m "fixed by liw 20130418"
    cvs tag tag_20130418_byliw # commit完了记得打上tag号。
    

    Date: 2013-03-20 Wed

    Author: liweilijie

    Org version 7.9.2 with Emacs version 23

    Validate XHTML 1.0
  • 相关阅读:
    算法问题实战策略 题解
    算法杂题题解 合集
    算法问题实战策略 ASYMTILING
    Leetcode 139. 单词拆分 dp
    算法问题实战策略 FESTIVAL 摇滚音乐节
    PAT 甲级题解
    《挑战程序设计竞赛1》题解合集
    (七)React Ant Design Pro + .Net5 WebApi:后端环境搭建日志、异常处理
    nginx 超时
    (九)React Ant Design Pro + .Net5 WebApi:后端环境搭建IdentityServer4(一)简单配置
  • 原文地址:https://www.cnblogs.com/liweilijie/p/2971659.html
Copyright © 2020-2023  润新知