简体   繁体   English

即使SVN出现svn状态,SVN也不会提交未版本控制的文件

[英]SVN won't commit unversioned files even though they show up with svn status

I'm running into difficulty setting up a new project into source control. 我在设置源项控制的新项目时遇到了困难。 I've imported a project into subversion and on the surface everything seems to be running fine. 我已经将一个项目导入到subversion中,表面上看起来一切正常。 However, whenever I add a new file into the project, even though it comes up as unversioned when I run svn status, it isn't checked in when i try and check in, either using svn ci -m 'msg' or when I try in my Versions OS X svn client. 但是,每当我在项目中添加一个新文件时,即使它在运行svn状态时出现无版本,当我尝试检入时也不会检查,无论是使用svn ci -m'msg'还是当我尝试我的版本OS X svn客户端。

here's some example output from svn status: 这是svn状态的一些示例输出:

?      Assets/Placeholder Images/shopping_list_1.png

And when I try to check-in it only checks in those files already versioned. 当我尝试登记时,它只会检查那些已经版本化的文件。 The rest are ignored silently! 其余的都是默默无闻的!

Any ideas on how I might solve this? 关于如何解决这个问题的任何想法?

You have to add the file to your working copy: 您必须将文件添加到工作副本:

svn add Assets/Placeholder Images/shopping_list_1.png

then you can check it in to the repository: 然后你可以检查它到存储库:

svn ci -m "Added shopping list placeholder image"

The question mark in the first column of the status output means the file isn't ignore, but also isn't being versioned. 状态输出的第一列中的问号表示文件未被忽略,但也未进行版本控制。 It's svn's way of saying "huh? what do you want me to do with this?" 这是svn的说法“嗯?你想让我用这个做什么?”

Checkout this plugin for OS X. It's like TortoiseSVN for Windows users. 查看OS X的这个插件。就像TortoiseSVN for Windows用户一样。

http://scplugin.tigris.org/ http://scplugin.tigris.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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