SVN 提交特定文件 [英] SVN Commit specific files

查看:44
本文介绍了SVN 提交特定文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法只提交特定文件的列表(例如,只提交 SVN 想要提交的文件列表中的一个).

Is there any way to commit only a list of specific files (e.q. just one of the list of files that SVN wants to commit).

我在终端下使用 MAC OS X,没有任何 UI.

I'm working on MAC OS X under Terminal, without any UI.

推荐答案

好的.只需列出文件:

$ svn ci -m "Fixed all those horrible crashes" foo bar baz graphics/logo.png

我不知道有什么方法可以告诉它忽略某些文件集.当然,如果你想提交的文件很容易被 shell 列出,你可以使用它:

I'm not aware of a way to tell it to ignore a certain set of files. Of course, if the files you do want to commit are easily listed by the shell, you can use that:

$ svn ci -m "No longer sets printer on fire" printer-driver/*.c

您还可以让 svn 命令从文件中读取要提交的文件列表:

You can also have the svn command read the list of files to commit from a file:

$ svn ci -m "Now works" --targets fix4711.txt

这篇关于SVN 提交特定文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆