To create a new repository from this template repository for Go projects, using the GitHub CLI run:
gh extension install heaths/gh-template
gh template clone <name> --template heaths/template-golang --publicThe gh template command will:
- Create a new repository with the given
<name>on GitHub. - Copy the
heaths/template-golangfiles into that repo. - Clone the new repository into a directory named
<name>in the current directory. - Apply built-in and passed parameters, or prompt for undefined parameters, to format template files.
This will create a new repo with the given <name> in GitHub, copy the
heaths/template-golang files into that repo, and clone it into a
subdirectory of the current directory named <name>.
See heaths/gh-template for more information about this GitHub CLI extension.
Licensed under the MIT license.