nathanielwolf
nathanielwolf

Reputation: 567

"Add to VCS" disabled in Android Studio

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?

screenshot

Upvotes: 4

Views: 7348

Answers (5)

kv1dr
kv1dr

Reputation: 234

I know I am late to the party, but this solved my problem.

Please note, that Android Studio also has its own Ignored Files list. If you can commit files with other git clients or using git in terminal, this could be the problem. In Android Studio go to File > Settings > Version Control > Ignored Files and remove files/folders from the list. Now you should be able to add files to git.

Upvotes: 1

Mahdi
Mahdi

Reputation: 6389

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.

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.

hope work for you

Upvotes: 3

Viral Patel
Viral Patel

Reputation: 33438

This question was asked 3 years ago and probably the OP isnt even following this post for an answer any more. But, for those who land on this page seeking an answer. - Android Studio has evolved a lot since then and all those issues are fixed. Go ahead and download the latest version as of today. It works fine at my end. Never saw that happening.

Upvotes: 0

ShuF
ShuF

Reputation: 11

You can enable it through this menu:

Menu image

Upvotes: -1

DieselPower
DieselPower

Reputation: 738

Add File to git means, that this file doesn´t exist before in git and is newly created ... if you change a file use commit ;)

Upvotes: 0

Related Questions