从 svn 存储库中删除所有文件 [英] Delete all files from svn repository

查看:40
本文介绍了从 svn 存储库中删除所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能这是一个非常简单的问题,但我还没有找到如何删除当前存在于外部 SVN 存储库中的所有文件.

Probably this is a very easy question, but I did not find yet how to delete all files present at the moment in a external SVN repository.

我只能删除一个文件:

svn delete -m "delete README" http://myrepo.com/svn/myrepo/README

但现在我想删除所有这些.我想到了一个脚本,它获取存储库所有文件的列表,然后将它们一个一个地删除,但这很乏味.你知道一个更简单的解决方案吗?

But now I want to delete all of them. I thought about a script which gets the list of all the files of the repository and afterwards deletes them one by one, but this is tedious. Do you know a simpler solution?

我也试过:

svn rm http://myrepo.com/svn/myrepo
svn delete http://myrepo.com/svn/myrepo/*

但没什么

谢谢

推荐答案

您可以进行浅层结帐,然后删除所有内容.

You could do a shallow checkout and then delete all.

示例:

svn checkout --depth immediates http://myrepo.com/svn/myrepo myworking_copy
cd myworking_copy
svn rm *
svn ci -m "Deleting all"

这篇关于从 svn 存储库中删除所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆