mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Merge pull request #29 from unixorn/cleanup-deleted-branches
Add instructions for deleting stale branches
This commit is contained in:
commit
87ee391bf1
@ -310,6 +310,13 @@ And finally, let's cherry-pick the commit for bug #14:
|
||||
(14)$ git cherry-pick 5ea5173
|
||||
```
|
||||
|
||||
<a name="delete-stale-local-branches">
|
||||
## 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 accidentally deleted my branch
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user