git - 我如何 git checkout 多个 pr

标签 git github

我是 github 新手,有存储库或库吗?我正在使用的,我想运行一些尚未 merge 到我正在运行的分支中的可用 PR。

我把它们都拿来了

git fetch origin +refs/pull//merge:refs/remotes/origin/pr/

然后 pull git checkout origin/pr/1282

这有效并且文件在我的文件夹中发生了变化,然后我 pull 了另一个 git checkout origin/pr/1275

第一次 pull 的文件已恢复。我如何测试/运行多个公关?

我也尝试过但失败了 git checkout origin/pr/1293 origin/pr/1282 origin/pr/1287 origin/pr/1269

谢谢

最佳答案

git checkout 检查特定的代码版本。你说,

then pulled git checkout origin/pr/1282

但是您还没有 pull ,您已经 checkout 了

您想要做的可能是查看要工作的分支,

git checkout -b my-merge-branch 

然后 pull 入您想要的 PR:

git pull origin origin/pr/1293 origin/pr/1282 origin/pr/1287

使用这些引用文献中的所有更改创建新的代码版本。

关于git - 我如何 git checkout 多个 pr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52941704/

相关文章:

swift - 找不到 Swift 字典 "keys"属性的内部实现

git - 在您自己的 Github 分支中选择性地导入其他人的 pull 请求

git - 尝试推送 git 并接收 "could not read Username for ' https ://github. com':终端提示已禁用”

linux - 在多个 Git 存储库之间共享 .mailmap 或其他顶级文件,跨平台

ios - Cocoapods(私有(private))无法找到规范

混帐 https ://repository not found though it exists

git - 将 Github repo 同步到 Dreamhost 站点

没有旧提交的 Github pull 请求

github - 更改index.html后,GitHub页面需要多长时间才能显示更改

github - 将 GitHub 存储库移动到另一个存储库时出错