PR流程
- Fork the repository.
- Clone the fork-repo.
- Create a new branch.
- Make the desired changes.
- Stage files:
git add
. - Commit the changes:
git commit
- Push them to the fork-online:
git push
. - Create a pull request.
3. Create a new branch
git switch -c new-feature
9.【Sign off and commit suggestion】
ChatGPT:
如果您在 Pull Request (PR) 中点击了 “Sign off and commit suggestion”,审查者的建议会作为一个新的提交(commit)直接添加到您的 forked 仓库的对应分支上。这个过程是自动的。
具体来说:
- 当您在 PR 中接受审查者的建议并提交时,GitHub 会在 PR 关联的分支上创建一个新的提交。这个分支通常是您在 forked 仓库中创建的,用于发起 PR。
- 这个新的提交包含审查者建议的更改,并且会立即反映在您 forked 仓库的那个分支上。
- 如果您查看您 forked 仓库的那个分支,您应该能看到包含审查者建议的新提交。
因此,通过点击 “Sign off and commit suggestion”,您不仅在 PR 中接受了更改,同时也更新了您 forked 仓库的相关分支。这使得管理和整合审查者的反馈变得更加方便和高效。