简体   繁体   中英

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. 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.

here's some example output from svn status:

?      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?"

Checkout this plugin for OS X. It's like TortoiseSVN for Windows users.

http://scplugin.tigris.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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