From 1b4cad15524d8433d053fc50b88dbcc0670ce27c Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Tue, 19 May 2015 14:23:25 +0700 Subject: [PATCH] Added a section about deleted PRs --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index cef55a2..7855d40 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ For clarity's sake all examples in this document use a customized bash prompt in - [Delete/remove last local commit](#deleteremove-last-local-commit) - [Delete/remove arbitrary commit](#deleteremove-arbitrary-commit) - [Delete tag](#delete-tag) +- [Deleted Patch](#deleted-patch) @@ -636,3 +637,10 @@ git push -f [remote] [branch] git tag -d git push :refs/tags/ ``` + + +## Deleted Patch + +If someone has sent you a pull request on GitHub, but then deleted their original fork, you will be unable to clone their commits or to use `git am`. In such cases, it is best to manually look at their commits and copy them into a new branch on your local. Then, commit. + +After commiting, change the author of the previous commit. To do this, see how to [change author](#commit-wrong-author). Then, apply whatever changes needed on to, and make a new pull request.