svn - svn checkout 是否覆盖现有的本地文件?

标签 svn version-control subclipse subversive

假设我有一个 svn目录和本地目录。如果我 svn co进入本地目录,正好有同名文件,有没有覆盖本地文件的风险?

最佳答案

如果您查看 svn checkout 的文档, 它说:

Prior to version 1.7, Subversion would complain by default if you try to check out a directory atop an existing directory which contains files or subdirectories that the checkout itself would have created. Subversion 1.7 handles this situation differently, allowing the checkout to proceed but marking any obstructing objects as tree conflicts. Use the --force option to override this safeguard. When you check out with the --force option, any unversioned file in the checkout target tree which ordinarily would obstruct the checkout will still become versioned, but Subversion will preserve its contents as-is. If those contents differ from the repository file at that path (which was downloaded as part of the checkout), the file will appear to have local modifications—the changes required to transform the versioned file you checked out into the unversioned file you had before checking out—when the checkout completes.



简而言之:
  • 没有 --force您遇到必须解决的冲突
  • --force如果文件不同,您可以进行修改
  • 关于svn - svn checkout 是否覆盖现有的本地文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22662961/

    相关文章:

    svn - Subversion 和 Siteminder

    windows - 如何在 Windows 上可视化 GitHub 分支历史记录?

    android - 什么进入源代码管理?

    eclipse - subclipse:无法加载默认 SVN 客户端

    svn - checkout 时如何摆脱 TortoiseSVN 1.8.1 中的错误 "' folder_name' not valid as filename in directory"?

    svn - SVN历史中带星号(*)的粗体是什么意思?

    svn - 如何在 UNIX 上获取正确的 svn 版本号?

    git 从命令行 git pull 请求代码审查

    java - Subclipse 安装失败 "Subversion native library not available"(Java HL)

    linux - 无法从 Linux 中的 Subclipse 连接到 SVN