ModernFix/scripts/branchlist.sh
2023-08-03 11:29:04 -04:00

3 lines
149 B
Bash
Executable File

#!/bin/bash
git ls-remote --heads origin | awk '{print $2}' | grep -E '^refs/heads/1\.' | sed 's:.*/::' | sort -V | grep -E '^1\.[0-9]*(\.[0-9]*)?$'