We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01f4093 commit 491ee36Copy full SHA for 491ee36
1 file changed
specs/git/remove_local_branches_not_in_remote.yaml
@@ -1,13 +1,10 @@
1
---
2
name: Remove all local branches that aren't on the remote repository
3
-command: |-
4
- "git branch --merged >/tmp/merged-branches && \
5
- vi /tmp/merged-branches && \
6
- xargs git branch -d </tmp/merged-branches"
+command: git branch --merged >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches
7
tags:
8
- git
9
description: "Remove all local branches that doesn't exists in remote repository."
10
-arguments: []
+arguments: []
11
source_url: "https://stackoverflow.com/questions/7726949/remove-tracking-branches-no-longer-on-remote"
12
author: Mailo Světel
13
author_url: "https://stackoverflow.com/users/133986/mailo-sv%c4%9btel"
0 commit comments