push rejected push to origin/master was rejected android studio bitbucket

push rejected push to origin/master was rejected android studio bitbucket

Push rejected: Push to origin/master was rejected

https://stackoverflow.com/questions/39010123/existing-android-studio-project-import-into-github-push-rejected/39010180

check status

First I refered this:

Bitbucket Tutorial: How to Sync Android studio project with Bitbucket account.  :  https://www.youtube.com/watch?v=AyJVK1Qay2E
Bitbucket integration with android studio tutorial || Bitbucket Tutorial | Bitbucket for Beginners: https://www.youtube.com/watch?v=vS39tcSKBHc

Did folllowing steps:
user@user-All-Series:~/Android-Studio-Projects/ocdlive_3.0.7_live$ git remote add origin https://et248@bitbucket.org/et248/ocd-android-in-nov18.git
user@user-All-Series:~/Android-Studio-Projects/ocdlive_3.0.7_live$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gradle/4.6/
        .gradle/buildOutputCleanup/
        .gradle/vcsWorkingDirs/
        .idea/assetWizardSettings.xml
        .idea/libraries/Gradle__com_android_support_multidex_instrumentation_1_0_2.xml
        .idea/workspace.xml


Then I am come accross error:
Push rejected: Push to origin/master was rejected


Then comes a POst from github which helped:

Push failed - Using Android Studio VCS: https://github.com/desktop/desktop/issues/2476#issuecomment-405497443

user@user-All-Series:~/Android-Studio-Projects/applive_3.0.7_live$ git remote -v
origin  https://et248@bitbucket.org/et248/app-android-in-nov18.git (fetch)
origin  https://et248@bitbucket.org/et248/app-android-in-nov18.git (push)

user@user-All-Series:~/Android-Studio-Projects/applive_3.0.7_live$ git push origin master --force
Password for 'https://et248@bitbucket.org':
Counting objects: 14305, done.

Delta compression using up to 8 threads.
Compressing objects: 100% (13453/13453), done.
Writing objects: 100% (14305/14305), 195.80 MiB | 1.09 MiB/s, done.
Total 14305 (delta 3256), reused 109 (delta 25)
remote: Resolving deltas: 100% (3256/3256), done.
To https://et248@bitbucket.org/et248/app-android-in-jan18.git
 + c03fb24...97b55ee master -> master (forced update)
user@user-All-Series:~/Android-Studio-Projects/applive_3.0.7_live$

No comments:

Post a Comment

Popular Posts