Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Commit&Push bug

Sometimes I can't commit and push changed files on Github via Android Studio. I'm pressing "Commit changes" button (Ctrl + K), there appears window with changed files, then I'm pressing "Commit and Push..." button, then I can see progress bar of files committing (but sometimes even this window doesn't appear) and then progress bar hiding and Push window doesn't appear. If I press "Commit and Push..." button again it will repeat all this stuff, but window where I can choose the remote to push my commit doesn't appear. I have several Android projects on one branch and I'm changing them at the same time (per one commit). Sometimes it helps to try to commit and push from another project opened in another instance of Android Studio. But not this time. I can't work without git and this is very frustrating, so please help me with advice, thanks!

like image 934
Nikita Axyonov Avatar asked Aug 06 '15 20:08

Nikita Axyonov


People also ask

Can I use Git on Android?

After successful authentication, you can start using Git on your Android device. You can create, pull, push the repositories. This is the easy way to use Git on your smartphone and it is a safe way because the Termux app is installed using Google play store.

What is the use of Git in Android Studio?

A Git repository is used to track the history of changes to files within your project. Before we create a Git repository we will first need an Android Project.

How do you add a commit?

To add and commit files to a Git repository Enter git status to see the changes to be committed. Enter git commit -m '<commit_message>' at the command line to commit new files/changes to the local repository. For the <commit_message>, you can enter anything that describes the changes you are committing.

What is the git commit command?

The git commit command captures a snapshot of the project's currently staged changes. Committed snapshots can be thought of as “safe” versions of a project—Git will never change them unless you explicitly ask it to.


1 Answers

Unchecked "Perform code analysis" in "Commit Changes" window and it's worked! It seems like Android Studio can't understand some files and rejects it...

like image 110
Nikita Axyonov Avatar answered Oct 01 '22 19:10

Nikita Axyonov