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
相关推荐
m0_694845575 小时前
tinylisp 是什么?超轻量 Lisp 解释器编译与运行教程
服务器·开发语言·云计算·github·lisp
June`5 小时前
muduo项目排查错误+测试
linux·c++·github·muduo网络库
weixin_6687 小时前
GitHub 2026年AI项目详细数据汇总表-AI分析-分享
人工智能·github
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2026-02-05)
ai·开源·大模型·github·ai教程
weixin_6681 天前
GitHub 2026年AI项目热度分析报告-AI分析-分享
人工智能·github
MicrosoftReactor1 天前
技术速递|GitHub Copilot CLI 斜杠命令速查表
github·copilot·cli
wu~9701 天前
GitHub永不遗忘,使用git push -f来覆盖的提交依旧保留
git·github
m0_694845571 天前
music-website 是什么?前后端分离音乐网站部署实战
linux·运维·服务器·云计算·github
独自破碎E1 天前
已经 Push 到远程的提交,如何修改 Commit 信息?
开发语言·github
jiang_changsheng1 天前
工作流agent汇总分析 2
java·人工智能·git·python·机器学习·github·语音识别