mirror of
https://github.com/namibia/tips.git
synced 2024-12-22 10:08:58 +00:00
Prune origin.
This commit is contained in:
parent
908ae034cc
commit
435fc51703
12
README.md
12
README.md
@ -53,6 +53,7 @@
|
||||
* [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)
|
||||
* [Archive the `master` branch](https://github.com/git-tips/tips#archive-the-master-branch)
|
||||
* [Modify previous commit without modifying the commit message](https://github.com/git-tips/tips#modify-previous-commit-without-modifying-the-commit-message)
|
||||
* [Purnes branches that have been deleted in the remote.](https://github.com/git-tips/tips#purnes-branches-that-have-been-deleted-in-the-remote)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
@ -371,5 +372,16 @@ git archive master --format=zip --output=master.zip
|
||||
git add --all && git commit --amend --no-edit
|
||||
```
|
||||
|
||||
## Purnes branches that have been deleted in the remote.
|
||||
```sh
|
||||
git fetch -p
|
||||
```
|
||||
|
||||
|
||||
__Alternatives:__
|
||||
```sh
|
||||
git remote prune origin
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -208,5 +208,10 @@
|
||||
{
|
||||
"title": "Modify previous commit without modifying the commit message",
|
||||
"tip": "git add --all && git commit --amend --no-edit"
|
||||
},
|
||||
{
|
||||
"title": "Purnes branches that have been deleted in the remote.",
|
||||
"tip": "git fetch -p",
|
||||
"alternatives":["git remote prune origin"]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user