gitea.tea/docs
Matěj Cepl 63bc90ea52 feat(branches): add rename subcommand (#939)
Implements the 'branches rename' command to rename a branch in a repository.
This wraps the Gitea API endpoint PATCH /repos/{owner}/{repo}/branches/{branch}.

Usage: tea branches rename <old_branch_name> <new_branch_name>

Example: tea branches rename -r owner/repo main factory

This resolves issue #938.

Reviewed-on: https://gitea.com/gitea/tea/pulls/939
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
Co-committed-by: Matěj Cepl <mcepl@cepl.eu>
2026-04-15 17:27:47 +00:00
..
CLI.md feat(branches): add rename subcommand (#939) 2026-04-15 17:27:47 +00:00
docs.go generate man page (#811) 2025-09-14 00:17:28 +00:00
example-workflows.md feat(workflows): add dispatch, view, enable and disable subcommands (#952) 2026-04-09 20:03:33 +00:00