如何将存储库中所做的更改推送到另一个存储库

所以我有一个存储库A。我想将所做的所有更改(和历史记录)推送到另一个存储库B。 所以,这就是我所做的:

git clone [A URL]
cd A // now i'm in the A directory (just to be clear)
gi remote add TeamRepo [B URL] // adds the B repository as a remote
git push TeamRepo master // tries to push the changes to B repository.

After last command, i have this error: fatal: refusing to merge unrelated histories Can anyone help me with this? I found some kind of related articles, but they did not help me at all