gt rename¶
Rename the current branch.
Usage¶
Arguments¶
| Argument | Description |
|---|---|
<new-name> |
New name for the branch |
Examples¶
Basic Rename¶
Behavior¶
- Renames the Git branch locally
- Updates Stack's tracking metadata
- If a PR exists, updates the PR's source branch (provider-dependent)
Remote Branches
Renaming does not automatically rename the remote branch. After renaming, you may need to push the new branch and delete the old one.