Skip to content

Commit c237b2d

Browse files
authored
Merge branch 'main' into add_intellij_idea_commands
2 parents e9056f0 + b5ee876 commit c237b2d

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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"
7+
tags:
8+
- git
9+
description: "Remove all local branches that doesn't exists in remote repository."
10+
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"
14+
shells: []
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
name: Launch tabs with clipboard URLs
3+
command: "pbpaste | xargs -n1 -I{} open {}"
4+
tags:
5+
- pbpaste
6+
description: Launch all URLs (arranged in a list in the clipboard buffer). Will be launched using default browser and tab creation preference. Useful for copying a column of URLs from a spreadsheet and visiting them all at once.

0 commit comments

Comments
 (0)