Skip to content

How to create new branch that is empty using GitHub REST API? #86

Closed
@sandeep-sarkar

Description

@sandeep-sarkar

Hi Team,

I want to put new files in my repository TestRepoSandeep. This repo has a master branch that already contains few files. I want to create a new branch test and commit new files there. This new branch should not contain any files from master. I am trying to create an empty branch but could not figure out how to do this using GitHub REST API and Python.

Please suggest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions