Files
Cloud-book/Tools/提交PR.md
2025-08-27 17:10:05 +08:00

41 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 00. 前提条件
- 注册并登录https://github.com/
- 下载并登录https://desktop.github.com/download/
## 01. Fork 仓库
1. 浏览器 `https://github.com/Eagles-Lab/155SRE` 点击 `Fork`
2. 点击 `Create fork`
## 02. Cloning a Fork
1. 浏览器在右上角头像,点击 `Your repositories` ,点击上述 Fork 的仓库
2. 复制浏览器链接,例 `https://github.com/<your-account>/155SRE`
3. 进入 Github Desktop 点击 Clone Repository选择 URL 粘贴上述链接,并点击 Clone
## 03. Creating a branch
1. 选择 Current Branch 并点击 New Branch
2. 填写 Name`dev`,点击 Create Branch
## 04. Make changes
1. 点击 Show in Finder浏览仓库中的文件
2. 根据 `README.md` 中规范描述,在 SRE155 下添加个人目录,目录内容包含:笔记、代码...
## 05. Pushing changes
1. 在 Github Desktop 中填写 Summary 后点击 Commit to dev
2. 在 Github Desktop 中点击 Publish branch / Pushing to origin
## 06. Create a pull request
1. 回到 `https://github.com/<your-account>/155SRE` ,点击 Compare & pull request / Contribute
2. 选择 `base repository: Eagles-Lab/155SRE base: main`,添加标题和描述信息,点击 Create pull request
## 备注
1. 关注 pull request 的 comment 信息。
2. 每次 pull request 被 merge 后才算一次完整流程。
3. 一次 pull request 可以进行多次 commint & push。