转:https://www.jianshu.com/p/b365c743ec8d
前言
本文尽量使用图形工具介绍如何向开源项目提交 Pull Request,一次亲身经历提交 PR
1.fork 项目
![](http://upload-images.jianshu.io/upload_images/1878425-4aaf2138a9ded913.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000)
image
2.克隆本地
![](http://upload-images.jianshu.io/upload_images/1878425-2242bff18617c58b.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000)
image
git clone https://github.com/liangtongzhuo/taro-ui.git
3.根据文档创建分支
拖进 SourceTree,基于 dev 创建分支
![](http://upload-images.jianshu.io/upload_images/1878425-63f807fdde66ef2b.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000)
image
4.提交的自己仓库
git add . && git commit -m"fix(dos):修正文字 " && git push
5.提交 Pull Request
第四步提交成功后,进入原来的仓库,点击 compare
![](http://upload-images.jianshu.io/upload_images/1878425-012c81361b3ee618.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000)
image
提交你的说明,选择合并的分支即可,剩下等待合并。
![](http://upload-images.jianshu.io/upload_images/1878425-d3e5d6457ea6eecd.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000)
image
结尾
开源的魅力就在于协同工作,提高效率。
![](http://upload-images.jianshu.io/upload_images/1878425-6358b805d97572ff.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000)
作者:梁同桌
链接:https://www.jianshu.com/p/b365c743ec8d
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。