我怎么知道目录中的哪些文件不在我的SVN存储库中?

时间:2021-12-12 07:25:57

The tile is exactly my question.

瓷砖正是我的问题。

[edited out mistaken code]

[编辑错误的代码]

6 个解决方案

#1


You could use svn status command.

您可以使用svn status命令。

If you didn't set ignore property the files will be shown with '?' prefix.

如果你没有设置ignore属性,文件将显示为'?'字首。

#2


If you're using a PC, TortoiseSVN highlights each file with an overlay icon indicating its status with respect to SVN

如果您使用的是PC,TortoiseSVN会使用覆盖图标突出显示每个文件,指示其相对于SVN的状态

#3


From command line if you run "svn st" files not under subversion control will show with a ? beside them.

从命令行如果运行“svn st”文件不在subversion控件下会显示?在他们旁边。

#4


You can use svn stat to see any files that exist in your working copy that aren't being ignored and are not in your repository. They will be marked with a question mark ?. To see every file that is not in the repository (even those that would normally be ignored by svn), use svn stat --no-ignore.

您可以使用svn stat查看工作副本中存在的任何文件,这些文件未被忽略且不在您的存储库中。他们会标有问号?要查看不在存储库中的每个文件(即使是那些通常被svn忽略的文件),请使用svn stat --no-ignore。

#5


To amplify @RichardE's answer, the icons in Tortoise SVN look like:

为了放大@ RichardE的答案,Tortoise SVN中的图标如下所示:

alt text http://img144.imageshack.us/img144/1906/subversionicons.png

alt text http://img144.imageshack.us/img144/1906/subversionicons.png

The files that aren't yet in the repository are marked with a "?"

尚未存储在存储库中的文件标有“?”

(From the Help file).

(来自帮助文件)。

#6


If you're on linux, from the topmost directory which you have under svn, run this command:

如果您使用的是Linux,请从svn下的最顶层目录运行此命令:

svn status

Any files that come up as having the ? symbol beside them are not under version control. You can add them with 'svn add < filename >'

有任何文件出现?它们旁边的符号不受版本控制。您可以使用'svn add '添加它们

Commit them to your repository as usual with svn commit.

像往常一样使用svn commit将它们提交到您的存储库。

#1


You could use svn status command.

您可以使用svn status命令。

If you didn't set ignore property the files will be shown with '?' prefix.

如果你没有设置ignore属性,文件将显示为'?'字首。

#2


If you're using a PC, TortoiseSVN highlights each file with an overlay icon indicating its status with respect to SVN

如果您使用的是PC,TortoiseSVN会使用覆盖图标突出显示每个文件,指示其相对于SVN的状态

#3


From command line if you run "svn st" files not under subversion control will show with a ? beside them.

从命令行如果运行“svn st”文件不在subversion控件下会显示?在他们旁边。

#4


You can use svn stat to see any files that exist in your working copy that aren't being ignored and are not in your repository. They will be marked with a question mark ?. To see every file that is not in the repository (even those that would normally be ignored by svn), use svn stat --no-ignore.

您可以使用svn stat查看工作副本中存在的任何文件,这些文件未被忽略且不在您的存储库中。他们会标有问号?要查看不在存储库中的每个文件(即使是那些通常被svn忽略的文件),请使用svn stat --no-ignore。

#5


To amplify @RichardE's answer, the icons in Tortoise SVN look like:

为了放大@ RichardE的答案,Tortoise SVN中的图标如下所示:

alt text http://img144.imageshack.us/img144/1906/subversionicons.png

alt text http://img144.imageshack.us/img144/1906/subversionicons.png

The files that aren't yet in the repository are marked with a "?"

尚未存储在存储库中的文件标有“?”

(From the Help file).

(来自帮助文件)。

#6


If you're on linux, from the topmost directory which you have under svn, run this command:

如果您使用的是Linux,请从svn下的最顶层目录运行此命令:

svn status

Any files that come up as having the ? symbol beside them are not under version control. You can add them with 'svn add < filename >'

有任何文件出现?它们旁边的符号不受版本控制。您可以使用'svn add '添加它们

Commit them to your repository as usual with svn commit.

像往常一样使用svn commit将它们提交到您的存储库。