
etc
1. Clone原始的GitHub仓库
git clone https://github.com/username/repo.git
2. 切换到PR的本地分支
git fetch origin pull/ID/head:BRANCHNAME
git checkout BRANCHNAME
其中ID是PR的编号,BRANCHNAME是本地分支的名称。
3. 接下来可以进行一些修改或者测试,然后把修改push到远程仓库
git push origin BRANCHNAME
4. 最后,在GitHub上打开你的仓库,你会发现已经存在一个绿色的“Compare & pull request”按钮,点击进去然后提交PR。
这样,你就成功地镜像了PR。
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号