An open API service indexing awesome lists of open source software.

https://github.com/venshine/fork_repository_for_private

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.
https://github.com/venshine/fork_repository_for_private

fork-private-repository fork-repository fork-repository-for-private private-repository

Last synced: 7 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

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](https://docs.github.com/en/repositories/creating-and-managing-repositories/duplicating-a-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
```
2. 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
```