How do I know which files in a directory arn't in my SVN repository?

吃可爱长大的小学妹 提交于 2020-01-04 06:44:39

问题


The tile is exactly my question.

[edited out mistaken code]


回答1:


You could use svn status command.

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




回答2:


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




回答3:


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




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




回答5:


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

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:

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

Commit them to your repository as usual with svn commit.



来源:https://stackoverflow.com/questions/774540/how-do-i-know-which-files-in-a-directory-arnt-in-my-svn-repository

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!