Problem scenario
You do not want to copy a branch to create a new one. How do you create a branch of a repository that has no branches?
Solution
You must know the relevant organization name of the Git repository and the name of the repository itself. Do these changes:
- Change “acme” to the organization name
- Change “goodrepo” to the repository name of your choice.
…
Continue reading “How Do You Create a Master Branch (or First Branch) with the GitHub API?”