Actions34
- Git Repositories Actions
- Pipelines (CI/CD) Actions
- Work Items (Boards) Actions
- Pull Requests Actions
- Test Plans (QA) Actions
- Service Hooks (Webhooks) Actions
- Wiki Actions
- Artifacts Actions
- Boards & Iterations Actions
Git Repositories → Create Branch
AI-generatedSummary
Create a branch in the specified Azure DevOps Git repository. The node checks for a main branch first, then master, and uses the first branch tip it finds as the new branch’s starting commit.
Inputs
- Project (required) — Azure DevOps project name or ID.
- Repository ID (required) — Repository ID or name.
- Branch Name (required) — Name for the new branch, such as
refs/heads/feature-1.
Output shape
A list of n8n items containing the Azure DevOps ref creation response.
If Azure DevOps returns a
valuearray, each element becomes a separate item; otherwise, the response is returned as one item. If neithermainnormasteris found, the node uses an all-zero object ID as the starting point.