I want to updatate the existing github project and push it as a new branch again to that repository so that later pull request can be created.
I want to do this via REST API v3 OR graphQL.
I couldnt able to find the way to do that.
I am not sure but I think we can use tree api end point to do that.
Any example OR approach will be helpful.
So I can create a new branch using the API but I didnt able to find a to push my whoel projectcode into this new branch using REST API.
I think we can do it using trees API but couldnt able to find the specific example.