How do you revert ONLY directories in an SVN working copy?

前端 未结 4 2172
说谎
说谎 2021-02-12 22:22

I want to revert a directory and all sub-directories in an SVN working copy so they match the repository but I don\'t want to touch any files i

4条回答
  •  遥遥无期
    2021-02-12 22:54

    You could use find combined with svn revert:

    find . -type d | grep -v .svn | xargs svn revert
    

    This won't touch any files inside the directories unless you use the -Roption (which is equivalent of --depth=infinity).

提交回复
热议问题