Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我有 SVN 存储库,我经常将其用于变更管理。
但是,每次修复后,我都必须将代码上传到生产服务器。
目前,我按文件上传文件,以便不上传 .svn 目录。
有没有一种方法可以将所有代码从 svn repo 上传到没有 .svn 目录的服务器,更简单的方法?
是的,命令是
svn export [URL]
这会导出没有 .svn 元信息的 svn 存储库。如果您想将其自动部署到测试/生产服务器,您可以查看post-commit hooks。