分别推送到两个远程存储库(备份和暂存)

Push to two remote repositories (backup and staging) individually

我有这两个存储库:

存储库 A

Bitbucket - 远程开发备份 - 30 多次提交。

存储库 B

Siteground 帐户 - 暂存 - 初始提交。

我已经在我的框架上工作了一段时间(+30 次提交)。现在我已经在我的 Siteground 帐户上创建了一个子域,它将用作临时服务器。 Siteground 支持 git,所以我在 cPanel 中创建了一个存储库。

然后我将 Siteground 存储库添加为 Sourcetree 中的新远程。这就是现在的样子:

现在我不想将我的最新提交推送到新的 Siteground 存储库,并且从现在开始能够分别推送到 Bitbucket 和暂存。

我曾尝试将最新的提交推送到暂存区,但出现此错误:

我猜是有问题,因为这两个 repos 不相关。

如何分别推送到两个不同的远程仓库?

我设法使用 git pull staging master --allow-unrelated-histories 使用 CLI 修复了它(此功能在 Sourcetree GUI 中尚不可用),然后提交并推送到两个遥控器。有效。