开发者

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

开发者 https://www.devze.com 2023-01-16 01:50 出处:网络
I\'m running Linux, and I put some files into SVN\'s ignore list. Now I want to remo开发者_开发问答ve them. But, I need to use the command-line for this purpose, not some SVN client\'s built-in featur

I'm running Linux, and I put some files into SVN's ignore list. Now I want to remo开发者_开发问答ve 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?


Using propedit start the default text editor to edit a property, in this case it's the one named svn:ignore :

svn propedit svn:ignore .


Use the svn propdel command

Directory:

svn propdel svn:ignore .

Recursive:

svn propdel svn:ignore -R 


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, e.g. (file2.txt):

file1.txt
file2.txt
file3.txt

Then simply remove it, e.g.:

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.


To remove ignored files from file system, run:

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

精彩评论

暂无评论...
验证码 换一张
取 消