class Git::Commands::Remote::Rename
‘git remote rename` command
Renames a remote and updates all its remote-tracking branches and configuration settings.
@example Rename a remote
rename = Git::Commands::Remote::Rename.new(execution_context) rename.call('origin', 'upstream')
@example Rename a remote with progress reporting
rename = Git::Commands::Remote::Rename.new(execution_context) rename.call('origin', 'upstream', progress: true)
@example Suppress progress output during rename
rename = Git::Commands::Remote::Rename.new(execution_context) rename.call('origin', 'upstream', no_progress: true)
@note No ‘end_of_options` boundary despite `:progress` preceding the operands:
`git remote rename` did not accept a `--` separator until git 2.36.0. Since the `old`/`new` operands are still validated (an operand is rejected as option-like whenever no `--` boundary exists anywhere in the definition), a name that looks like a flag (e.g. `-weird`) raises `ArgumentError` instead of ever reaching git, so omitting the boundary introduces no ambiguity.
@note ‘arguments` block audited against git-scm.com/docs/git-remote/2.53.0
@see git-scm.com/docs/git-remote git-remote
@api private