Linux svn - 不受版本控制的单个文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19813349/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 01:16:55  来源:igfitidea点击:

svn - single file not under version control

linuxfilesvn

提问by Colin747

I've added a new file (pdf) to a directory and when I try and commit the new file it is saying that it is not under version control, the directory and every other file in the directory is under version control as when I tried svn add *it listed all the files as being under version control.

我已将一个新文件 (pdf) 添加到目录中,当我尝试提交新文件时,它表示它不受版本控制,目录中的每个其他文件都受版本控制,就像我尝试时一样svn add *它将所有文件列为受版本控制。

What is causing this problem and how do I fix it?

是什么导致了这个问题,我该如何解决?

EDIT: OK I am now able to add the file, am I right in saying that the svn add *command added this file under version control thus allowing me to commit the file?

编辑:好的,我现在可以添加文件了,我说这个svn add *命令在版本控制下添加了这个文件,从而允许我提交文件,我说得对吗?

采纳答案by phenompbg

Yes, the svn add *did that.

是的,他们svn add *这样做了。

You have to svn add Name_of_Fileany new files before you can svn commit them.

svn add Name_of_File在 svn 提交之前,您必须拥有任何新文件。

回答by D.Snap

you can try something like this...

你可以试试这样的...

in the checkout directory run this command

在结帐目录中运行此命令

svn add . --force

then just commit it all

然后就全部提交

svn commit -m "your text" *

回答by TechSeeko

In some cases the addcommand doesn't do it, and still gives an error. the best thing is to perform the svn cleanup [PATH...]command then try to add or commit.

在某些情况下,该add命令不会执行此操作,并且仍然会出现错误。最好的办法是执行svn cleanup [PATH...]命令然后尝试添加或提交。