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
相关推荐
Shell运维手记3 小时前
Linux 常用基础命令学习笔记
linux·运维·笔记·学习·算法·github
码流怪侠4 小时前
StereoCrafter 源码级深度拆解:腾讯如何把 2D 视频“抠“成 3D
github·音视频开发·webvr
fthux7 小时前
不必下载整个仓库:GitZip Pro 让 GitHub 文件与文件夹批量下载更简单
前端·chrome·ai·edge·开源·github·firefox
人工智能研究所11 小时前
GitHub 10k+ Star:用自然语言描述系统,AI 帮你生成可交互架构图
人工智能·github·交互·自然语言·系统架构图·archify
逛逛GitHub12 小时前
一个 Skill.md 拿下 1.8 万星,这个 GitHub 项目让 AI 先说重点。
github
云空12 小时前
《GitHub 从入门到进阶完整教程》
github
Timeless15912 小时前
Git与TortoiseGit使用教程:第二章 Git常用命令及TortoiseGit使用教程
github
用户693717500138413 小时前
深夜炸场!DeepSeek 没发新模型,却重构了整个 Agent 生态
前端·后端·github
fthux13 小时前
装闭 RenoPit 源码解析(08):多模态AI调用、重试与文本降级
人工智能·ai·开源·github·open source·renopit
笨鸟先飞,勤能补拙14 小时前
AI Agent应用领域深度解析:从概念到落地的全维度审视
大数据·人工智能·python·物联网·安全·网络安全·github