“添加到 VCS"在 Android Studio 中禁用 [英] "Add to VCS" disabled in Android Studio

查看:44
本文介绍了“添加到 VCS"在 Android Studio 中禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间以来,我一直在使用 Intellij IDEA w/git 集成进行 Android 开发.我最近升级到 Android Studio (v0.1.1),现在我最喜欢的快捷键之一 Ctrl+Command+A添加到 VCS"总是被禁用.这是错误还是我缺少的 GIT 设置?

I have been using Intellij IDEA w/git integration for Android dev for sometime. I have recently upgraded to Android Studio (v0.1.1) and now one of my favorite shortcuts Ctrl+Command+A "Add to VCS" is always disabled. Is this a bug or a GIT setting I am missing?

推荐答案

我遇到了同样的问题.首先初始化 git 并添加用于跟踪的文件,一些文件要求添加到 git.当您忽略它并选中不要问/记住"时,它们会添加到 .gitignore 文件中.

I had the same problem. At the first place you initialize git and add files for tracking, some files asked to add to git. when you ignore it and check "do not ask / remember" they add to .gitignore file.

只需打开 .gitignore 文件并检查是否包含特定文件夹,因此将其删除,文件夹和文件的灰色将变为红色,您可以简单地添加它们.

just open .gitignore file and check if the specific folder is included so remove it and the gray color of folder and files will change to red and you can add them simply.

希望对你有用

这篇关于“添加到 VCS"在 Android Studio 中禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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