首页 » 记事本 » SVN command

SVN command

svn revert

取消本地编辑

svn revert --depth infinity dirname

–depth的参数

  • empty  只包含目标文件或目录,不包含子目录
  • files    只包含目标文件和子文件
  • immediates 只包含目标文件及相邻的文件,目录
  • infinity 所有文件,目录,子目录

svn add

Add files, directories, or symbolic links.

Options

  • –auto-props
  • –depth ARG
  • –force
  • –no-auto-props
  • –no-ignore
  • –parents
  • –quiet (-q)
  • –targets FILENAME

Normally, the command svn add * will skip over any directories that are already under version control. Sometimes, however, you may want to add every unversioned object in your working copy, including those hiding deeper. Passing the --force option makes svn add recurse into versioned directories:

svn add * --force
此文章发表在 记事本. 将 固定链接 加入收藏.