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
相关推荐
砖厂小工1 小时前
用 GLM + OpenClaw 打造你的 AI PR Review Agent — 让龙虾帮你审代码
android·github
程序员鱼皮2 小时前
又一个新项目完结,我要出海了!
ai·github·开源项目
徐小夕2 小时前
pxcharts-vue:一款专为 Vue3 打造的开源多维表格解决方案
前端·vue.js·github
Moment3 小时前
想要长期陪伴你的助理?先从部署一个 OpenClaw 开始 😍😍😍
前端·后端·github
我叫黑大帅3 小时前
前端如何利用 GitHub Actions 自动构建并发布到 GitHub Pages?
前端·面试·github
HelloGitHub5 小时前
这个年轻的开源项目,想让每个人都能拥有自己的专业级 AI 智能体
开源·github·agent
刘发财11 小时前
弃用html2pdf.js,这个html转pdf方案能力是它的几十倍
前端·javascript·github
sunny86519 小时前
Claude Code 跨会话上下文恢复:从 8 次纠正到 0 次的工程实践
人工智能·开源·github
ZengLiangYi1 天前
Git Tag + Semver + CI/CD:从打标签到自动发布的完整实践
github