1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-22 10:08:58 +00:00

Prune origin.

This commit is contained in:
Hemanth.HM 2015-08-25 18:39:20 +05:30
parent 908ae034cc
commit 435fc51703
2 changed files with 17 additions and 0 deletions

View File

@ -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)
<!-- Dont 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
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -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"]
}
]