How to use “svn add” recursively in Windows console?

半城伤御伤魂 提交于 2019-12-04 08:23:07

问题


When I run

svn st 

on my working copy I get some "?" entries which are located in subdirectories of working copy root. I want to add all of them to the repository. I try:

svn add --force .

and

svn add --force *

but it doesn't work.

WORKING SOLUTION:

svn add --depth=infinity --force *

回答1:


Don't know if it work in windows, but you could try:

svn add --depth=infinity *



回答2:


Perhaps try:

svn status | grep '^\?' | sed -e 's/^? *\(.*\)/\1/;s/ /\\ /g' | xargs svn add


来源:https://stackoverflow.com/questions/4302888/how-to-use-svn-add-recursively-in-windows-console

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!