Wiki/commands.md

246 B

Commands

List of random commands

  • Add 20 to all branch names where the names does not start with the full year:
    • git for-each-ref refs/heads --format "%(refname:short)" | grep -E "^[0-9]{6}_.*" | xargs -n 1 -I % git branch -m % 20%