博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
GitHub 的 pull request 测试
阅读量:4229 次
发布时间:2019-05-26

本文共 817 字,大约阅读时间需要 2 分钟。

为了对 pull request 进行测试,我还弄得挺折腾的,本来已经有了一个 GitHub 账号,为了测试 pull request,不得已又申请了一个(因为 gitee 的好像和 GitHub 这边不互通,无法进行测试)。我原先有一个测试用的仓库,于是乎就直接拿这个仓库进行 pull request (gitee 的类似)测试了:

https://github.com/2392863668/GitTest

用另外一个 GitHub 账号 fork 过来:

https://github.com/15249089066/GitTest

话不多说,直接说上菜(有图有真相)!

发起 pull request (新账号)

新账号这边把 base 仓库 fork 过来。

为了方便,我直接在网页上提交了一个 commit(这儿是在 master 分支,一般来说会单独创建一个分支比较好)。 

填写 commit changes 信息。

 提交以后创建新的 pull request。

查看和比对仓库信息 。

对比变化 

提交 pull request 。

处理 pull request(原账号)

新账号那边已经提交了 pull request,那 base 仓库这边能收到 pull request 请求吗?我们来看看吧!

刷新原账号下的仓库,发现有一个新的 pull request,赶紧去看看吧!

能看到是新账号发出的 pull request 。

 看来 GitHub 官方对于我第一次收到 pull request 还是很高兴的(我当然就更高兴啦!),点击合并请求。

确认合并 。

 当然,合并以后,还可以写一下评论(对于无私贡献代码的社区成员,应当给予鼓励和感谢)。

 查看记录,合并成功。

大功告成 

查看处理信息(原账号) 

如果你是开发人员,然后收到了请求被合并(如果是著名开源项目的话)的邮件消息,难道还有比这更让人激动的事情么?

转载地址:http://njjqi.baihongyu.com/

你可能感兴趣的文章
Beginning Relational Data Modeling, Second Edition
查看>>
Winternals Defragmentation, Recovery, and Administration Field Guide
查看>>
Video Conferencing over IP : Configure, Secure, and Troubleshoot
查看>>
Pro ASP.NET 2.0 Website Programming
查看>>
Disassembling Code : IDA Pro and SoftICE
查看>>
Building Online Communities With Drupal, phpBB, and WordPress
查看>>
C# 2.0 : The Complete Reference
查看>>
Digital Character Animation 3
查看>>
Flash 8 Cookbook
查看>>
Mastering Mambo: E-Commerce, Templates, Module Development, SEO, Security, and Performance
查看>>
Web Design For Dummies (For Dummies
查看>>
Flash 8: Projects for Learning Animation and Interactivity
查看>>
Web Portals: : The New Gateways to Internet Information and Services
查看>>
Web Content Caching and Distribution
查看>>
Use Cases Patterns and Blueprints
查看>>
Understanding SOA with Web Services
查看>>
Unit Testing in Java: How Tests Drive the Code
查看>>
The J2EE Architect's Handbook: How to be a Successful Technical Architect for J2EE Applications
查看>>
Practical Mono (Expert's Voice in Open Source)
查看>>
Linux(R) Troubleshooting for System Administrators and Power Users
查看>>