gitRenameBranch
1. Help
Command: bin/gitRenameBranch --help
SYNOPSIS:
Rename git local branch, push new branch and delete old branch.
USAGE: gitRenameBranch [OPTIONS] [ARGUMENTS]
USAGE: gitRenameBranch [--help|-h] [--config]
[--bash-framework-config <bash-framework-config>] [--verbose|-v] [-vv] [-vvv]
[--log-level <log-level>] [--log-file <log-file>]
[--display-level <display-level>] [--no-color] [--theme <theme>] [--version]
[--quiet|-q] [--assume-yes|--yes|-y] [--push|-p] [--delete|-d]
ARGUMENTS:
newBranchName {single} (mandatory) The new branch name.
[oldBranchName {single}] The name of the old branch if not current one.
GLOBAL OPTIONS:
--help, -h {single}
Displays this command help
--config {single}
Displays configuration
--bash-framework-config <bash-framework-config> {single}
Use alternate bash framework configuration.
--verbose, -v {single}
Info level verbose mode (alias of --display-level INFO)
-vv {single}
Debug level verbose mode (alias of --display-level DEBUG)
-vvv {single}
Trace level verbose mode (alias of --display-level TRACE)
--log-level <log-level> {single}
Set log level
Possible values:
- OFF
- ERR
- ERROR
- WARN
- WARNING
- INFO
- DEBUG
- TRACE
Default value: OFF
--log-file <log-file> {single}
Set log file
Default value: /logs/bash.log
--display-level <display-level> {single}
Set display level
Possible values:
- OFF
- ERR
- ERROR
- WARN
- WARNING
- INFO
- DEBUG
- TRACE
Default value: INFO
--no-color {single}
Produce monochrome output. alias of --theme noColor.
--theme <theme> {single}
Choose color theme - default-force means colors will be produced even if
command is piped.
Possible values:
- default
- default-force
- noColor
Default value: default
--version {single}
Print version information and quit.
--quiet, -q {single}
Quiet mode, doesn't display any output.
OPTIONS:
--assume-yes, --yes, -y {single}
Do not ask for confirmation (use with caution).
Automatic yes to prompts; assume "y" as answer to all prompts
and run non-interactively.
--push, -p {single}
Push the new branch.
--delete, -d {single}
Delete the old remote branch.
DESCRIPTION:
EXIT CODES:
1 : if current directory is not a git repository
or if invalid or missing arguments
2 : if impossible to compute current branch name
3 : master/main branch not supported by this command,
please do it manually
5 : New and old branch names are the same
6 : You can use this tool in non interactive mode only
if --assume-yes option is provided
7 : if failed to rename local branch
8 : if remote branch deletion failed
9 : if failed to push the new branch
VERSION: 3.0
AUTHOR: [François Chastanet](https://github.com/fchastanet)
SOURCE FILE: https://github.com/fchastanet/bash-tools-framework/tree/master/src/_binaries/Git/gitRenameBranch/gitRenameBranch-binary.yaml
LICENSE: MIT License
Copyright (c) 2020-now François Chastanet