Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git - Android Studio no longer lets me commit changes and push to GitHub

Tags:

As of a couple of hours ago, Android Studio no longer lets me commit my changes. When the Commit dialog pops up, it shows the files that have changed and lets me enter a commit message. However, when i click Commit (or Commit and Push), the progress dialog comes up, goes to about 10% - 20% and then just disappears without actually committing anything. If i try again (without restarting the IDE first), nothing seems to happen at all when i click Commit/Commit and Push.

Sadly, Google searches have so far not been very helpful to me, so if any of you could help me out, i would really appreciate it.

I have heard, however, that git might sometimes clash with Windows on changing the capitalization of file names. I do remember renaming my Utilities package to utilities and Adapters package to adapters. Could this be causing my problem and if so, how can i fix this?

Thanks in advance.

like image 434
Teun Kooijman Avatar asked Aug 03 '15 17:08

Teun Kooijman


People also ask

Does Android studio work with Git?

In Android Studio, go to VCS > Enable Version Control Integration. This option won't be visible if it's integrated with any version control before. Then choose Git as the version control system.

How can I change from GitHub to Android studio?

To update your project (to make a pull) with the latest changes from the remote repository (you should have already added the remote origin), navigate to VCS > Git > Pull. This will automatically update your Android Studio project with the most recent code from the remote repository.

How do I fix push rejection?

If you get a failed to push some refs to error, the main thing to do is git pull to bring your local repo up to date with the remote. Avoid employing the --force flag when using git pull and prevent other developers' accidental overwrites of committed features.

Do git pull before pushing again?

You need to pull before push, to make your local repository up-to-date before you push something (just in case someone else has already updated code on github.com ). This helps in resolving conflicts locally. 'origin' is a remote. You can use git remote --verbose to see all the remote configured under your git folder.


Video Answer


1 Answers

I have the same problem. Try uncheck "Perform code analysis" in commit changes dialog. it worked for me.

like image 146
LaYer Sutachad Avatar answered Mar 01 '23 00:03

LaYer Sutachad