Last active
April 19, 2023 11:10
-
-
Save nielswind/382de8fafe23168aa172cb94fa63ead6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# list remote branches not having local branch with same name | |
set -euo pipefail | |
IFS=$'\n\t' | |
comm -23 <(git branch -r|cut -d"/" -f2-|sort|grep -v HEAD) <(git branch|cut -c3-|sort) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment