freeCodeCamp/guide/chinese/miscellaneous/improve-existing-pull-reque.../index.md

23 lines
953 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Improve Existing Pull Request by Another Contributor
localeTitle: 改善另一个贡献者的现有拉动请求
---
如何在保持承诺的同时取得某人的公关并以自己为基础做出自己的公关:
1. 建立一个新的分支最好使用原始分支的PR
`git checkout -b pr/xyz`
1. 将更改拉到它。
`git pull git://github.com/rafase282/wiki.git update/pr-guide`
这基本上意味着从存储库**Rafase282 / wiki** ,分支**更新/ pr / guide**到您当前的分支**pr / xyz** 。
1. 进行更改,添加,提交,推送。如果你需要压缩,请确保保持原始贡献者的提交不受影响。
**注意** :您可能需要强制推送`git push -f origin pr/xyz`
1. 创建您的PR并在说明中使其关闭原始PR并`closes #xyz`
这应该使用原始更改生成一个新的pull请求再添加一个新的pull请求该请求将在合并时自动引用并关闭原始请求。