snippets/old_snippets/git-trim.en.md

18 lines
422 B
Markdown

---
title: git trim
seo_description: Code snippet showing how to use git-trim
date: 2023-02-23T13:09:31+01:00
draft: false
snippet_types:
- git
---
Easy clean up branches from local that are old or already merged on remote.
```shell
$ git trim -s -p
```
- [source](https://codelawd.hashnode.dev/managing-git-branches-with-git-trim#heading-basic-install)
- [git-trim project](https://github.com/jasonmccreary/git-trim)