我正在使用以下命令将存储库从一台 Git 服务器迁移到另一台服务器。我可以移动标签,但无法移动拉取请求。
git 克隆 --barehttps://github.forEx.myRepositoryUrl https://github.forEx.myRepositoryUrl
git 远程设置 url origin[电子邮件受保护] /cdn-cgi/l/email-protection:示例/myRepositoryUrl.git
git推送——全部
git push --标签
你至少需要获取pull/
存储这些 PR 分支的命名空间。
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://github.forEx.myRepositoryUrl
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
并创建本地分支供您推送回新存储库。
git fetch
git for-each-ref refs/heads/pull/* --format='%(refname:short)'| \
while read ref; do \
git switch pull/${ref} \
done
然而,现在可能会传输实际的拉取请求项目及其注释和验证。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)