git-branches-rename - Man Page

Batch renames branches with a matching prefix to another prefix

Synopsis

git-branches-rename [options] BRANCH_PREFIX NEW_PREFIX

Description

Batch renames branches with a matching prefix to another prefix.

Options

-h--help

show usage information.

-v--verbose

print more details about what is being done.

-n--dry-run

do not actually rename the branches.

BRANCH_PREFIX

a prefix that matches the start of branch names.

NEW_PREFIX

the new prefix for the branch names.

Examples

$ git-rename-branches bug bugfix
bug/128  -> bugfix/128
bug_test -> bugfix_test

$ git-rename-branches ma backup/ma
master -> backup/master
main   -> backup/main

See Also

https://github.com/MestreLion/git-tools

Author

Rodrigo Silva (MestreLion) linux@rodrigosilva.com

Info

2016-01-31