Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 11 of 45

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

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

Highlighted
Ground Controller Lvl 1
Message 12 of 45

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 13 of 45

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 14 of 45

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"
Ground Controller Lvl 1
Message 15 of 45

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

Help for me. thanks!

Ground Controller Lvl 1
Message 16 of 45

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

Thank, you for you help.

Ground Controller Lvl 1
Message 17 of 45

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

 

 

git pull --allow-unrelated-histories

 

worked

Ground Controller Lvl 2
Message 18 of 45

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

This is great, thank you very much!

http://gph.is/1U7OwpV

Ground Controller Lvl 1
Message 19 of 45

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

This command is a dangerous one. "git pull --allow-unrelated-histories" it has messed up my whole codebase i dont know what happened and am not in a position to recover from it

 

Ground Controller Lvl 2
Message 20 of 45

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

Thanks, It works for me.