Skip to content

Commit 491ee36

Browse files
author
elvis kahoro
committed
fix: Remote local branches not in remote was stringified and thus
failing
1 parent 01f4093 commit 491ee36

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

specs/git/remove_local_branches_not_in_remote.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
---
22
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"
3+
command: git branch --merged >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches
74
tags:
85
- git
96
description: "Remove all local branches that doesn't exists in remote repository."
10-
arguments: []
7+
arguments: []
118
source_url: "https://stackoverflow.com/questions/7726949/remove-tracking-branches-no-longer-on-remote"
129
author: Mailo Světel
1310
author_url: "https://stackoverflow.com/users/133986/mailo-sv%c4%9btel"

0 commit comments

Comments
 (0)