Github上面拉取别人提交的PR
2024-08-30 19:56:04
在github上面协同开发,避免不了拉取别的同学的PR,那么如何拉取呢?
1、首先我们看下upstream
liz@liz-PC:~/jimeng/handle-api$ git remote -v
origin https://github.com/lz-2019/handle-api.git (fetch)
origin https://github.com/lz-2019/handle-api.git (push)
remote https://github.com/beego/handle-api.git (fetch)
remote https://github.com/beego/handle-api.git (push)
我们可以看到remote是源代码的指向
2、然后看到这个PR的ID是 213
超时信息错误 #
3、使用fetch PR 拉取
liz@liz-PC:~/jimeng/handle-api$ git fetch remote pull//head:jm5594
remote: Enumerating objects: , done.
remote: Counting objects: % (/), done.
remote: Compressing objects: % (/), done.
remote: Total (delta ), reused (delta ), pack-reused
展开对象中: % (/), 完成.
来自 https://github.com/beego/handle-api
* [新引用] refs/pull//head -> jm5594
然后切到拉取的分支
git checkout jm5594
最新文章
- Python
- 删除windows系统中以前的设备(比如以前的网卡)或驱动的方法
- SOA和Web Service介绍
- 64位系统下System32文件系统重定向
- AJAX的概念介绍
- 同时处理html+js+jquery+css的插件安装(Spket&;Aptana插件安装)
- 磁盘管理二-LVM相关内容
- top batch output
- 大数据算法设计模式(2) - 左外链接(leftOuterJoin) spark实现
- Yii2基本概念之——生命周期(LifeCycle)
- Kubernetes---Pod的扩容和缩容
- pycharm注册码(不断更新)
- 1px实现方案
- 学习MeteoInfo二次开发教程(七)
- strpos 的正确使用方式
- github提交代码后没有contribution问题
- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- CRT &;&; exCRT模板
- curl学习(实例不断总结)
- PLSQL_统计信息系列07_数据字典统计信息的导出和导入