Reputation: 643
I am trying to use git in Android Studio. If I choose commit changes, it says that it has successfully committed the changed files but those changes do not appear on the GitHub. Instead, if I delete the repository from GitHub and choose Share Project on GitHub, it successfully creates a new repository and uploads the files into it. This means that the connection is fine. Also, I have checked the gitignore file, the java files are not in that list. What could be the problem?
Upvotes: 36
Views: 14575
Reputation: 4632
For my case it's a different - I uncheck Perform code analysis in commit changes dialog and it worked. Hope it will help some one.
Upvotes: 16
Reputation: 18687
You have to select "commit and push".
If you want to upload (push) the changes that you made, go to:
VCS -> Git -> PUSH
Only after "pushing", your changes will be uploaded to GitHub.
If you select "commit", your changes would remain local.
Upvotes: 48