• SVN CommandLine


    要是SVN命令行用不了的话:

    1.SVN装了没?

    2.SVN安装时,选项“command line client tools”选了没。

    检出:

    svn checkout [-depth ARG] [--ignore-externals] [-r rev] URL PATH

    example:

      "svn checkout file:///c:/SVN_Rep/Test":将 c:SVN_RepTest 下文件检出到当前目录

      “svn checkout file:///c:/SVN_Rep/Test c:userslaymonddesktopTest”:将 c:SVN_RepTest 的最新版本检出到 c:userslaymonddesktopTest

      “svn checkout -r 1 file:///c:/SVN_Rep/Test c:userslaymonddesktopTest”:将 c:SVN_RepTest 的1版本检出到 c:userslaymonddesktopTest

    更新

    svn info URL_of_WC  //显示版本信息

    example:

      svn info file:///c:/SVN_Rep/Test


    svn update [-r rev] PATH

    example

      "svn update -r 1 c:userslaymonddesktop est" 更新 c:userslaymonddesktop est 到1版本。要求:更新的目录需要已经 checkout 过。

    提交

    svn commit -m "LogMessage" [-depth ARG] [--no-unlock] PATH...//提交,如果有文件没有加入版本控制,则该文件自动会略 

    svn status -v PATH//用于查看文件夹下文件的状态

    svn add PATH//用于添加“没有被版本控制的文件”。

    svn status -u -v Path//察看哪些文件会被更新修改,-u

    对比

    usage: 1. diff
           2. diff [-c M | -r N[:M]] [TARGET[@REV]...]
           3. diff [-r N[:M]] --old=OLD-TGT[@OLDREV] [--new=NEW-TGT[@NEWREV]] [PATH...]
           4. diff OLD-URL[@OLDREV] NEW-URL[@NEWREV]
           5. diff OLD-URL[@OLDREV] NEW-PATH[@NEWREV]
           6. diff OLD-PATH[@OLDREV] NEW-URL[@NEWREV]

    examp:

    svn diff -r 1 file:///SVN_Rep/Test //将最新版与1版比较

    svn diff -r 1:2 file:///SVN_Rep/Test //将2版与1版比较

    svn diff file///SVN_Rep/Test@1 file:///SVN_Rep/Test@2 //将2版与1版比较

      ' ' no modifications
      'A' Added
      'B' not locked in repository, lock owned by this working copy is broken
      'C' Conflicted
      'D' Deleted
      'I' Ignored
      'K' locked in repository, lock owned by this working copy
      'M' Modified
      'O' locked in repository, lock owned by another working copy
      'R' Replaced
      'S' the item has a Switched URL relative to the parent
      'T' locked in repository, lock owned by this working copy was stolen
      'X' an unversioned directory created by an externals definition
      '?' item is not under version control
      '!' item is missing (removed by non-svn command) or incomplete
      '~' versioned item obstructed by some item of a different kind
      '*' a newer revision exists on the server

  • 相关阅读:
    检测后缀表达式的合法性
    对表达式进行空白符预处理
    字符串替换
    中缀表达式的计算
    Linux shell编程
    Linux常用shell
    [转载]shell脚本编写规范
    [转载]Linux文件类型
    Linux的进程
    Linux进入命令行模式
  • 原文地址:https://www.cnblogs.com/laymond/p/3273091.html
Copyright © 2020-2023  润新知