我正在尝试创建一个脚本,可以将我的git存储库镜像到另一个存储库。一切都很顺利,但它一直提示:
。
[remote rejected] refs/pull/xx/head -> refs/pull/xx/head (The current action can only be performed by the system.)
这个仓库被克隆到了我的电脑上,然后被推送到另一个git。所有的文件和历史记录都被正确地克隆和推送了,但是一直出现这个“错误”。我该怎么办?
这是我的脚本
git clone --mirror https://path1.com/_git/fredagsproject1
cd fredagsproject1.git
git remote set-url --push origin https://path2.com/_git/fredagsproject2
git push --mirror