java 在 Intellij 中添加新文件不会添加到 subversion

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2817452/
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-10-29 22:58:51  来源:igfitidea点击:

Add a new file in Intellij doesn't add to subversion

javasvnintellij-ideaversion-control

提问by ripper234

I'm not sure what I did to cause this, but adding a new file or package in IntelliJ now doesn't add them to subversion, and I have to add them manually via right-click -> subverion -> add.

我不确定我做了什么导致这种情况,但是现在在 IntelliJ 中添加新文件或包不会将它们添加到 subversion,我必须通过右键单击 -> subverion -> add 手动添加它们。

Is there a setting that controls this behaviour?

是否有控制这种行为的设置?

回答by Bozhidar Batsov

Go to File -> Settings -> Version control -> Confirmation -> When files are createdYou're probably looking for "Add silently".

转至文件 -> 设置 -> 版本控制 -> 确认 -> 文件创建时间您可能正在寻找“静默添加”。

Note: In IntelliJ 6 or earlier versions this is done with File -> Settings -> Version control -> General Settings -> Add silently

注意:在 IntelliJ 6 或更早版本中,这是通过文件 -> 设置 -> 版本控制 -> 常规设置 -> 静默添加完成的

回答by The Jeff

If you've come here and the solutionby Bozhidar Batsovdoesn't solve the issue you may need to change the svn:global-ingnores in SVN Properties for the project.

如果你来到这里和解决方案通过Bozhidar Batsov不能解决问题,您可能需要改变了svn:全球ingnores在SVN属性的项目。

Right click on the project go to Subversion | Set Property.... In the drop down select svn:global-ingores. Remove * from the list and hit OK.

右键单击项目转到Subversion | 设置属性...。在下拉列表中选择svn:global-ingores。从列表中删除 * 并点击OK

SVN Properties: Set Property

SVN 属性:设置属性

SVN Properties: Property Element to Delete

SVN 属性:要删除的属性元素

回答by sri

Simple Shortcut keydoes the work:

简单的快捷键可以完成工作:

Select all the unversioned files that you wish to add in SVN and CTRL + ALT + A

选择要添加到 SVN 中的所有未版本控制的文件,然后 CTRL + ALT + A

回答by magabiztos

You can check unversioned files under View -> Changes -> Unversioned filesand add it manually to VCS (works for IntelliJ 13).

您可以在View -> Changes -> Unversionedfiles 下检查unversioned files并将其手动添加到 VCS(适用于 IntelliJ 13)。