How to ignore folder without removing it from my repository

家住魔仙堡 提交于 2019-12-03 03:38:06
$ cd /path/to/app/tmp
$ svn propset svn:ignore '*' .
$ cd /path/to/app/cache
$ svn propset svn:ignore '*' .

EDIT: Here's the steps if you already previously committed

$ cd /path/to/app/tmp
$ svn st
M slkdjfag.jpg
M gasgsag.png
. #bunch of M's

$ svn rm * --force
$ svn ci -m'trunk: cleaning up tmp directory'
$ svn propset svn:ignore '*' .
$ touch a
$ svn st // shouldn't output anything

The command is:

svn propedit svn:ignore ./some_path

You can use * for "any chars" in the path like, *.project if you want.

Tortoise svn is a good solution for user friendly interface(like Petar Ivanov says). If you are on PC it's "must have" software. If you are on other OS or want full control of svn I suggest you read more about command line working with svn. It's not hard and google knows many things about it :)

you can read more about it: here

And more about cmd svn: here

You can add a svn property to the parent folder: svn:ignore.

If you use tortoise: Right click -> Properties -> SVN -> Properties... -> (add or edit)

In the console: svn propset svn:ignore [path/file(s)]

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