# How to create a branch from tag/commit via api?

**URL:** <https://forum.gitea.com/t/how-to-create-a-branch-from-tag-commit-via-api/5848>\
**Category:** API/SDK/Tea/HelmChart/Terraform\
**Created:** [September 7, 2022, 11:50am UTC](https://forum.gitea.com/t/how-to-create-a-branch-from-tag-commit-via-api/5848 "2022-09-07T11:50:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gzh](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@gzh](https://forum.gitea.com/u/gzh)\
**Post date:** [September 7, 2022, 11:50am UTC](https://forum.gitea.com/t/how-to-create-a-branch-from-tag-commit-via-api/5848/1 "2022-09-07T11:50:33Z")

</div>

hello, we have a problem with repoCreateBranch parameters, the repoCreateBranch api only can create branch from a old branch(old\_branch\_name), but can not create branch from tag/commit, is there any suggestion for this? thanks!
