没有更改提交 Android Studio SVN [英] No changes to commit Android studio SVN

查看:34
本文介绍了没有更改提交 Android Studio SVN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Studio 上有一个 Android 项目,我正在尝试将其放入我的 Subversion 存储库并进行提交.首先,我在 Android Studio 的 VCS 下拉菜单中启用了版本控制,并将我的项目导入到我的 subversion 存储库中.该项目在那里,我可以看到它.当我对代码进行一些更改并尝试提交时,它会显示未检测到更改".我所有的文件也都变成红色了.我做的事情不对吗?我该怎么做?

I have an Android project on Android studio and I am trying to put it in my subversion repo and do commits. First I enabled version control in the VCS drop down menu in Android studio and imported my project into my subversion repository. The project is there and I can see it. When I make some changes to my code and try to commit it, it says "No changes detected". All my files are turned red too. Am I not doing something correctly? How do I do this?

推荐答案

默认情况下,Android Studio 不会将本地操作标记为 repo 操作.

By default, Android Studio doesn't mark local actions as repo actions.

要将新创建的文件标记为 SVN 添加,您可以右键单击该文件(在层次结构或编辑器选项卡中)-> Subversion -> 添加.但是,正如您可以想象的那样,对每个文件执行此操作非常麻烦.

To mark a newly created file as an SVN add, you can right-click on the file (either in the hierarchy or the editor tab) -> Subversion -> Add. As you can imagine though, this is quite cumbersome to do for every single file.

要更改设置以便将新创建的文件立即标记为存储库添加,请转到首选项 -> 版本控制 -> 确认 -> 静默添加(在创建文件时"类别下).

To change the setting so that newly created files are instantly marked as a repo add, go to Preferences -> Version Control -> Confirmation -> Add silently (under the 'When files are created' category).

这篇关于没有更改提交 Android Studio SVN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆