github - git push rejected, Pull Failed: fatal: refusing to merge unrelated histories -
this question has answer here:
- git refusing merge unrelated histories 7 answers
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.
Comments
Post a Comment