A simple script to convert the default name of a user's branches from 'master' to 'main' (or another name specified)
Place both the main.py
and requirements.txt
in a directory and run pip install -r requirements.txt
.
main.py -t <token> -r <repos> -n <new_name>
Flag | Default | Description |
---|---|---|
"-t" , "--token" |
None | A personal access token for a users account. If omitted, an interactive login prompt will be shown |
"-r" , "--repos" |
None | A comma separated list of repos to use. If omitted, all repos will be converted. |
"-n" , "--name" |
'main' | The new name for all primary branches. |