Skip to content

Commit

Permalink
fix: Remote local branches not in remote was stringified and thus
Browse files Browse the repository at this point in the history
failing
  • Loading branch information
elvis kahoro committed May 4, 2023
1 parent 01f4093 commit 491ee36
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions specs/git/remove_local_branches_not_in_remote.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
---
name: Remove all local branches that aren't on the remote repository
command: |-
"git branch --merged >/tmp/merged-branches && \
vi /tmp/merged-branches && \
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
tags:
- git
description: "Remove all local branches that doesn't exists in remote repository."
arguments: []
arguments: []
source_url: "https://stackoverflow.com/questions/7726949/remove-tracking-branches-no-longer-on-remote"
author: Mailo Světel
author_url: "https://stackoverflow.com/users/133986/mailo-sv%c4%9btel"
Expand Down

0 comments on commit 491ee36

Please sign in to comment.