How to Rename a Branch in CLI
Learn how to rename a branch with av cli from Aviator.
Branches created using av branch
should only be renamed with av branch
as well. av
needs to update internal tracking metadata that defines the order of branches within a stack.
Simply use the --rename
or -m
flag.
If you have already created a pull request via av pr
, av
will not rename the branch without the --force
flag.
av
cannot update the remote branch, but you can still force update your local branch name. The remote counterpart will still keep its old name.
Note: Force updating the branch name requires closing the corresponding pull request and opening a new one using av pr
. This will ensure that av
can recognize the stack properly.
Last updated
Was this helpful?