DEV Community

Discussion on: Git unrelated-histories and local

waylonwalker profile image
Waylon Walker

I've ran into this a number of times as well. I think you can run into this issue for anything that changes history, such as a rebase. I think its generally ok to git push --allow-unrelated-histories to your own repo with no collaborators, or to your own branch, steer clear with a branch that has collaborators.

ajeebkp23 profile image
Ajeeb.K.P Author

Thanks for sharing your experience and thoughts.