Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My Android Project has are now Colored Red after Experimenting with CVS in android studio

I am studying with the CVS in Android Studio and after that, my folder and all files are now color red. How can I make it back to normal again? Please check the link of the picture and see it.

http://imageshack.com/a/img199/8914/3sws.png

After further checking, probably this is the cause? I'm not sure if this error message means that it is succesfful.

http://img11.imageshack.us/img11/6766/btac.png

This is my git (Git Release Notes (Git-1.8.4-preview20130916) I got this from this website. http://msysgit.github.io/

Thanks, Tok

like image 313
The One Avatar asked Oct 09 '13 06:10

The One


People also ask

Why are my Android Studio files red?

The project was unversioned but in a SVN controlled folder. Thats what the red was indicating. A solution could be to copy the project to a different folder or to add the files to version control.

What does yellow file mean in Android Studio?

There can be many reasons for a file/directory being highlighted in yellow as you have mentioned in the questions. Generated files from importing external libraries. Read only files that are not editable. System API files. Some files that are generated in in the build process.

What is blue in Android Studio?

Save this answer. Show activity on this post. Okay, since I was new to the android studio interface earlier, I had this stupid doubt. Anyway I figured it out. All the file names appears in blue color if your project is connected to the github, else they appear white.


2 Answers

I don't know your programming environment, but in mine, with Git (CLI)

  • my project files who changed (!= repository) are colored in red when no commit action have been executed.

    • this files become green after the commit action.

It's just an idea but your should try to commit your changes OR cancel (checkout) them.

like image 183
BENARD Patrick Avatar answered Sep 23 '22 13:09

BENARD Patrick


Switch to project view in android studio,with project selected, right click >>>git>>>>then add

wait for a few seconds and your files will change color.Provided you have already done your push that is and properly configured your git setup as follows: Github/Bitbucket:

**1.create repository

2.go to androidstudio:vcs::add version control

3.in android terminal:git init

4.git add --all>>>git remote add origin https:\yourrepo url

5.git commit -m "initial commit"

6.git push -u origin master(or whatever branch you created) refresh(github/bitbucket page)

like image 31
RileyManda Avatar answered Sep 22 '22 13:09

RileyManda