Patterns stolen from API documentation and translated into React components. Each one solved a real problem I kept running into.
Fork and adapt as needed.
| #!/usr/bin/env bash | |
| while getopts "d" opt; do | |
| case $opt in | |
| d) dryRunOpt="--dry-run";; | |
| esac | |
| done | |
| # prune local "cache" of remote branches first: | |
| git fetch --prune origin | |
| # delete merged to master branches: |