The public repositories provided by Github do not allow the creation of private branches, and the method of creating a private branch by copying the repository is documented here.
The git and gh commands need to be installed.
- fork project to personal private repository, the script automatically creates the project
sh fork_repository_private.sh $github_public_repository_url
- fork project to team private repository, the script automatically creates the project
sh fork_repository_private.sh $github_public_repository_url $team
sh fork_repository_private.sh https://github.com/venshine/json2model