Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 752 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 752 Bytes

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.

Usage

  1. fork project to personal private repository, the script automatically creates the project
sh fork_repository_private.sh $github_public_repository_url
  1. fork project to team private repository, the script automatically creates the project
sh fork_repository_private.sh $github_public_repository_url $team

Demo

sh fork_repository_private.sh https://github.com/venshine/json2model