开发者

How to commit removal of files in SVN

I've changed the names of some files in my project. I would like to commit removal of files with old names on svn server.

RabbitCVS can't do it. Only possible action on missing files is "restore". Is it possible to commit removal from com开发者_如何学Gomandline ?


in the command line yu can tell SVN to delete a file (even if it doesnt exist anymore in your local repository) with

svn del yourfile

(del, rm, remove are aliases)

and then commit it with

svn ci

The cleanest way is to rename the file with (for this one I think the old file needs to be present, maybe you can force it though)

svn mv youroldfile yournewfile

(mv, ren, rename are aliases)


The command for the commandline is svn rm $FILENAME.

But if you renamed your files you may want to use svn mv $OLDFILE $NEWFILE to preserve the history.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜