MB
1 month ago
373
3
Forge

Forge, refusing to merge unrelated histories

Posted 1 month ago by MB

Hi,

I got this error when trying to use Deploy Now in Laravel Forge:

 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories

Have tried the following on the server (digitalocean), but the problem is the same:

git pull origin master --allow-unrelated-histories

I know what caused the problem, but not sure how to fix it. I'm a solo developer and used aws c9 for this project. I have since switched to Code. I tried to Clone the repo, but Github Desktop failed because of some errors in the .c9 config folder. Manually downloaded the files, removed the .c9 folder and pushed (-f) to github.

Any suggestions how to fix this?

, Kenneth

Please sign in or create an account to participate in this conversation.