https://github.com/doodlescheduling/gh-bootstrap-repository
Github gh cli extension for cloning a repository
https://github.com/doodlescheduling/gh-bootstrap-repository
gh-extension github
Last synced: about 2 months ago
JSON representation
Github gh cli extension for cloning a repository
- Host: GitHub
- URL: https://github.com/doodlescheduling/gh-bootstrap-repository
- Owner: DoodleScheduling
- License: apache-2.0
- Created: 2023-04-06T12:54:35.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2026-02-27T00:59:21.000Z (4 months ago)
- Last Synced: 2026-02-27T07:56:38.342Z (4 months ago)
- Topics: gh-extension, github
- Language: Go
- Homepage:
- Size: 120 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
## Bootstrap github repository
[](https://github.com/DoodleScheduling/gh-bootstrap-repository/releases)
[](https://github.com/doodlescheduling/gh-bootstrap-repository/actions/workflows/release.yaml)
[](https://goreportcard.com/report/github.com/DoodleScheduling/gh-bootstrap-repository)
[](https://coveralls.io/github/DoodleScheduling/gh-bootstrap-repository?branch=master)
[](https://github.com/DoodleScheduling/gh-bootstrap-repository/blob/master/LICENSE)
Github does not provide an easy way to create a repository with predefined settings from another repository.
A template repository for instance is only useful to copy the contents. No repository settings are copied.
This gh cli extension creates a new repository based on another one (A normal or template one).
It copies the following:
* The content with a single commit
* Basic repository settings
* Branch protections
* Organization teams (collaborators)
* Topics
### Install
```
gh extension install DoodleScheduling/gh-bootstrap-repository
```
### Usage
The following command will attempt to create a repository called `myorg/my-repository`
with all the settings and content taken from `myorg/from-repository`.
```
gh bootstrap-repository myorg/my-repository myorg/from-repository
```
Command line help:
```
expects [repository-name] [origin-repository] as arguments
Usage:
gh-bootstrap-repository [repository-name] [origin-repository] [flags]
Flags:
-h, --help help for gh-bootstrap-repository
```
### Required Permissions
It is required to be in the list of repository admins in the origin repository.
The repository creation will fail otherwise.