铁匠 铁匠
首页
golang
java
架构
常用算法
  • Java
  • nginx
  • 系统运维
  • 系统安全
  • mysql
  • redis
参考文档
关于
收藏
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

铁匠

不予评判的专注当下
首页
golang
java
架构
常用算法
  • Java
  • nginx
  • 系统运维
  • 系统安全
  • mysql
  • redis
参考文档
关于
收藏
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • 向 github 开源项目提交 PR 流程

fengjx
2016-04-23
参考文档

向 github 开源项目提交 PR 流程

  • fork 项目

    1. 访问项目主页(如:https://github.com/tech-microworld/ws-cloud-gateway (opens new window))
    2. 点击右上角『fork』按钮
  • clone 已经 fork 的项目,并与原项目保持同步

    git clone git@github.com:<fork 的 github 用户名>/ws-cloud-gateway.git
    cd ws-cloud-gateway
    git remote add upstream 'https://github.com/tech-microworld/ws-cloud-gateway.git'
    
    1
    2
    3
  • 创建开发分支 git checkout -b feature/one-feature

  • 修改提交代码,合并到 master 分支

    git add . 
    git commit -m 'commit msg'
    git checkout master
    git merge one-feature
    
    1
    2
    3
    4
  • 同步代码,保持与主干分支同步,解决冲突(如果有)

    git fetch upstream
    git rebase upstream/master
    git push origin master
    
    1
    2
    3
  • 提交 PR

    1. 访问原项目主页(https://github.com/tech-microworld/ws-cloud-gateway)
    2. 点击 "Compare" 比较变更并点击 "Pull request" 提交 PR
    3. 选择
#git#github
Last Updated: 2024/04/23, 01:30:37
最近更新
01
go-kit学习指南 - 多协议支持
04-19
02
go-kit学习指南 - 中间件
04-19
03
go-kit开发微服务 - 服务注册与发现
04-19
更多文章>
Theme by Vdoing | Copyright © 2016-2024 铁匠 | 粤ICP备15021633号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式