From cf111f959c4b625ea6d4bc3c6d6b2852e9f895cc Mon Sep 17 00:00:00 2001 From: Joe Block Date: Fri, 22 Aug 2014 14:07:36 -0700 Subject: [PATCH] Add instructions for deleting stale branches --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index d61035c..a728638 100644 --- a/README.md +++ b/README.md @@ -304,6 +304,13 @@ And finally, let's cherry-pick the commit for bug #14: (14)$ git cherry-pick 5ea5173 ``` + +## I want to delete local branches that were deleted upstream +Once you merge a pull request on github, it gives you the option to delete the merged branch in your fork. If you aren't planning to keep working on the branch, it's cleaner to delete the local copies of the branch so you don't end up cluttering up your working checkout with a lot of stale branches. + +```bash +$ git fetch -p +``` ## I accidentaly deleted my branch