Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio not checking Java files into GitHub

I am using Android Studio and checking in my files. Everything works fine, except the main.java files are not committing at all. I have tried to go through each file and push the commit and add button. Android Studio says "all files are up to date," but when I look inside GitHub, nothing is there except the folder.

I have looked at the ignore file and the files are not located inside of this.

like image 793
Rupert Avatar asked Jun 28 '15 19:06

Rupert


1 Answers

I had this issue, I was not able to fix it elegantly but I was able to commit my project to a new repository. First start by deleting the .git folder inside the project folder. Also make sure to check under your Java folders for any .git folders. These, I believe, are hidden by default so you'll have enable show hidden files. After this, go back to Android Studio and it will tell you some changes have occurred, go ahead and click 'Configure'. It will open up the settings window, delete those items in red text. It should now be ready so that you can import into version control from the beginning. I personally, used these steps https://www.londonappdeveloper.com/how-to-use-git-hub-with-android-studio/

like image 108
Anon Avatar answered Nov 11 '22 12:11

Anon