Github贡献PR六部曲

Github贡献PR三部曲

1. fork代码

复制代码
选中自己要贡献PR的仓库,点击Github右上角的fork

2. clone代码

复制代码
git clone git@github.com:{username}/seata.git

3. 设置提交信息

复制代码
git config user.name {username}
git config user.email {email}

git remote add upstream git@github.com:seata/seata.git
git remote set-url --push upstream no-pushing

4. 贡献PR步骤

复制代码
git checkout remotes/upstream/develop -b {branch name}
git push origin {branch name}
git branch --set-upstream-to=origin/{branch name} {branch name}

5. 提交PR

复制代码
写完代码后,打开github,点击pull request
选择你要合并的分支 base
按照仓库要求填写标题,内容
最后点击Create Pull Request

6. bug修复

复制代码
当有bug时,直接在自己的分支上修改,然后push就好了,直到bug解决完毕,代码被合并后,可以在github上点击Delete branch
相关推荐
wflynn2 小时前
GitHub 日榜趋势速报 | 2026-11-03
开源·github
u1301302 小时前
GitHub 热榜项目:日榜(2026-11-03)
人工智能·github
GoGeekBaird8 小时前
别再给每个 AI 做自我介绍了:我做了一个「个人上下文」管理系统
后端·github·agent
莫晓燚9 小时前
Ansible 13 个常用模块---企业实战
git·github
程序员柒叔11 小时前
Diagram Design 解构:45 种图型如何用语义路由与 SVG 质量门交付
人工智能·github·agent·skills
逛逛GitHub11 小时前
9 个神级 GitHub 项目助你蹭上抖音、小红书 Vibe 知识大赏热点。
github
m4Rk_11 小时前
【论文阅读】Agent 记忆机制(119):EvoLife——让具身 Agent 把主动问到的答案沉淀为可复用的空间经验
论文阅读·人工智能·学习·开源·github
后台模板学习14 小时前
GitHub Actions 与 Jenkins 在日志监
运维·github·jenkins
miofly14 小时前
GitHub 今日推荐|auto-ontology:给 Agent 装上企业数据的语义索引
python·开源·github
miofly16 小时前
GitHub 日榜趋势速报 | 2026-11-04
开源·github