svn add * --force does not add recursive

早过忘川 提交于 2019-12-13 08:19:42

问题


svn add * --force

I am on window and using Tortoise SVN. I want to add all new files with single task.

I tried all solutions which I found, but that does not add recursively.

I only see add icon on files/directories in current directory only. How can I do this for all sub files/ recursively.

After this command I can not see add (+) icon on subdirectories/files.

I also tried

svn add <directory>

But this also add only current directory, not its all child.


回答1:


I was surprised why the svn add * command is not adding its files recursively. Because recursive adding is default property. You can see in SVN book.

Issue was in properties of my Tortoise-SVN.

I got solution google issue tracker.

  • Right click in your repo in window. Select TortoiseSVN > Properties.
  • See if you don't have a property svn:global-ignores with a value of *
  • If you have property with star(*) then it will ignore recursive adding. So remove this property.

This guy also explained why this property added in my project.

The most like way that it got there is that someone right-clicked a file without any extension and selected TortoiseSVN -> SVN Ignore -> * (recursively), and then committed this.

You can check the log to see who committed that property change, find out what they were actually trying to do, and ask them to be more careful in future. :)



来源:https://stackoverflow.com/questions/52288880/svn-add-force-does-not-add-recursive

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