Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

How to create a branch and push files to it with V4 github graphQL api ?

After reading documentation and watching beginneer tutorial of Gitub GraphQL Api's I have this understanding we need to use mutation to cut a new branch from existing branch but doesn't know which mutation verb to use. 

 

and When to use Objects ??

1 Reply
Highlighted
Community Manager
Message 2 of 2

Re: How to create a branch and push files to it with V4 github graphQL api ?

To my understanding, what you're asking for is not currently possible in the GraphQL v4 API because there isn't a `createBranch` mutation. You would have to continue to use the REST v3 API or use git directly.

 

I hope that helps!