Cosimo Sguanci Cosimo Sguanci - 1 year ago 756
Android Question

Android Studio Git Push Rejected

I'm trying to uploading my Android Project on github but I get this error when I try to push:

Push rejected: Push to origin/master was rejected

I made this steps:

Answer Source

Yes, as suggested in the comments you should pull the changes first, if you are working on a new repository that's could happened when you create your remote repo with a readme or a licence file, to pull the changes from the interface you should use, VCS > Git > Pull then select the master branch (depends)

enter image description here

after that you can Git > Push with no problem.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download