简体   繁体   中英

How do I remove a file from SVN's ignore list, using the command-line?

I'm running Linux, and I put some files into SVN's ignore list. Now I want to remove them. But, I need to use the command-line for this purpose, not some SVN client's built-in features. How can I do that?

使用propedit启动默认文本编辑器来编辑属性,在这种情况下,它是名为svn:ignore

svn propedit svn:ignore .

Use the svn propdel command

Directory:

svn propdel svn:ignore .

Recursive:

svn propdel svn:ignore -R 

要从文件系统中删除被忽略的文件,请运行:

svn st --no-ignore | grep "I   " | sed "s/I   //" | xargs rm

If you just want to remove one file out of several others from svn ignore, do as @virtualblackfox says to get to your svn:delete property in a text editor. If you see the actual file listed, eg (file2.txt):

file1.txt
file2.txt
file3.txt

Then simply remove it, eg:

file1.txt
file3.txt

But if you have a filter like *.txt, then you will need to create a black list.

Then 'svn stat' and you should see something like

?    file2.txt

Then you can 'svn add file2.txt' back in to the repository.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM