Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 11 of 58

Re: How to deal with "refusing to merge unrelated histories" error

I am in a similar situation where I am getting the same messages. Probably I just need to do the

 

 --allow-unrelated-histories

 

But I wish I knew what situations where I should not. Obviously we get the message because there might sometimes be a good reason to not do the allow. I got into my situation because I did not know what I was doing and did something I should not have.

Ground Controller Lvl 1
Message 12 of 58

Re: How to deal with "refusing to merge unrelated histories" error

It's worked for me.
Very thanks! i have solved my problem

Ground Controller Lvl 1
Message 13 of 58

Re: How to deal with "refusing to merge unrelated histories" error

Probably because you did a `git init` on something like "the same" set of files locally, then tried to merge with the files on the repository. The better way is to clone from the repository, then work from that.

Ground Controller Lvl 1
Message 14 of 58

Re: How to deal with "refusing to merge unrelated histories" error

I had just created a README.md while initiating a new Repositoy. after adding remote origin the issue rised on git pull. but this is really helful to solve my problem.

Ground Controller Lvl 1
Message 15 of 58

Re: How to deal with "refusing to merge unrelated histories" error

 --allow-unrelated-histories

 

this was pretty much what was needed in my case.

Ground Controller Lvl 1
Message 16 of 58

Re: How to deal with "refusing to merge unrelated histories" error

I am receiving the message saying "there is no tracking information for the current branch"
Highlighted
Ground Controller Lvl 1
Message 17 of 58

Re: How to deal with "refusing to merge unrelated histories" error

Help for me. thanks!

Ground Controller Lvl 1
Message 18 of 58

Re: How to deal with "refusing to merge unrelated histories" error

Thank, you for you help.

Ground Controller Lvl 1
Message 19 of 58

Re: How to deal with "refusing to merge unrelated histories" error

 

 

git pull --allow-unrelated-histories

 

worked

Ground Controller Lvl 2
Message 20 of 58

Re: How to deal with "refusing to merge unrelated histories" error

This is great, thank you very much!

http://gph.is/1U7OwpV