VisualSVN - TortoiseSVN - 自上次提交以来没有更改或添加文件
我正在使用 VisualSVN 和 Visual Studio 2010,并且最近安装了最新的 TortoiseSVN(TortoiseSVN 1.7.1,Build 22161 - 64 位,2011/10/21 22:51:59)。我尝试提交更改,但得到:
No files were changed or added since the last commit ...
这不是真的。我能做些什么吗?
I am using VisualSVN and Visual Studio 2010 and have recently installed the latest TortoiseSVN (TortoiseSVN 1.7.1, Build 22161 - 64 Bit , 2011/10/21 22:51:59). I tried to commit my changes but get:
No files were changed or added since the last commit ...
This is not true. Is there anything I can do about that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
VisualSVN 将通过在解决方案资源管理器中未更改的文件旁边放置绿色勾号来指示您处于从 Subversion 签出的工作副本中。如果你没有看到它们,那就有问题了。
确保您拥有 VisualSVN 和 Tortoise 1.7 或更高版本。 1.6和1.7版本之间文件格式发生了变化;您还需要通过右键单击 Windows 资源管理器中的工作文件夹来升级磁盘上的工作副本。
如果您正在使用工作副本 -
请确保您确实已保存更改(即 Visual Studio 选项卡中文件名旁边没有“*”,并且文件旁边没有图标)解决方案资源管理器是一个红色框而不是红色勾号
如果您创建了新文件,请确保选择“添加”(在 Visual Studio 中右键单击,选择 Subversion | 添加),以便 Subversion 知道控制该文件
VisualSVN will indicate that you're in a working copy checked out from Subversion by placing green ticks beside unchanged files in the Solution Explorer. If you don't see them, something is wrong.
Be sure that you have version 1.7 or later of both VisualSVN and Tortoise. The file format changed between version 1.6 and 1.7; you'll also need to upgrade the working copy on disk by right-clicking on the working folder in Windows Explorer.
If you are working in a working copy --
Make sure you've actually saved the changes (i.e. Visual Studio doesn't have a "*" next to the filename in the tab, and the icon next to the file in the Solution Explorer is a red box rather than a red tick
If you've created new files, make sure you choose "Add" (right-click in Visual Studio, choose Subversion | Add) so Subversion knows to control that file
对我来说,右键单击 - 'TortoiseSVN' - '清理...' 就成功了
For me a Right-click - 'TortoiseSVN' - 'Clean up...' did the trick
听起来你的工作副本没有从 Subversion 中检出。您可以通过查找
.svn
文件夹来判断:如果您没有看到它们,则您的工作副本不是来自 Subversion。接下来要检查的是每个文件上的图标。 Tortoise SVN 将在每个正确提交和版本控制的文件旁边显示一个绿色复选标记。问号意味着您必须通过右键单击文件并导航到“Tortoise SVN -> 添加”将文件添加到 Subversion。
Sounds like your working copy wasn't checked out of Subversion. You can tell by looking for
.svn
folders: if you don't see them, your working copy isn't from Subversion.Next thing to check is the icons on every file. Tortoise SVN will show a green check mark next to every file that's committed and versioned properly. A question mark means that you have to add the file to Subversion by right clicking on it and navigating to "Tortoise SVN->Add".