Ecosyste.ms: Awesome
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: about 1 month 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.
- Host: GitHub
- URL: https://github.com/venshine/fork_repository_for_private
- Owner: venshine
- License: agpl-3.0
- Created: 2023-11-27T08:32:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-02T03:58:09.000Z (12 months ago)
- Last Synced: 2024-05-14T13:00:47.922Z (8 months ago)
- Topics: fork-private-repository, fork-repository, fork-repository-for-private, private-repository
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```