github - git push rejected, Pull Failed: fatal: refusing to merge unrelated histories -


this question has answer here:

i created new repo on github console.
in android studio, committed , trying push remote, push getting rejected.

in studio, i'm able make successfull connection github.

tried git pull using android studio, got:

git pull failed: fatal: refusing merge unrelated histories 

even in git bash got this:

>git push origin master<br/> https://github.com/xxxx.git  ! [rejected]        master -> master (fetch first) error: failed push refs 'https://github.com/xxx.git' hint: updates rejected because remote contains work hint: not have locally. caused repository pushing hint: same ref. may want first integrate remote changes hint: (e.g., 'git pull ...') before pushing again. hint: see 'note fast-forwards' in 'git push --help' details. 

in android studio, 

go master, mater-->rebase onto--> get:

rebase successful: rebased master on origin/master 

then push android studio.

enter image description here


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -