Skip to content

Commit 435fc51

Browse files
committed
Prune origin.
1 parent 908ae03 commit 435fc51

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
* [rebases 'feature' to 'master' and merges it in to master ](https://github.com/git-tips/tips#rebases-feature-to-master-and-merges-it-in-to-master)
5454
* [Archive the `master` branch](https://github.com/git-tips/tips#archive-the-master-branch)
5555
* [Modify previous commit without modifying the commit message](https://github.com/git-tips/tips#modify-previous-commit-without-modifying-the-commit-message)
56+
* [Purnes branches that have been deleted in the remote.](https://github.com/git-tips/tips#purnes-branches-that-have-been-deleted-in-the-remote)
5657

5758
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
5859
<!-- @doxie.inject end toc -->
@@ -371,5 +372,16 @@ git archive master --format=zip --output=master.zip
371372
git add --all && git commit --amend --no-edit
372373
```
373374

375+
## Purnes branches that have been deleted in the remote.
376+
```sh
377+
git fetch -p
378+
```
379+
380+
381+
__Alternatives:__
382+
```sh
383+
git remote prune origin
384+
```
385+
374386
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
375387
<!-- @doxie.inject end -->

tips.json

+5
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,10 @@
208208
{
209209
"title": "Modify previous commit without modifying the commit message",
210210
"tip": "git add --all && git commit --amend --no-edit"
211+
},
212+
{
213+
"title": "Purnes branches that have been deleted in the remote.",
214+
"tip": "git fetch -p",
215+
"alternatives":["git remote prune origin"]
211216
}
212217
]

0 commit comments

Comments
 (0)