repo_new_local

This function will create a new local Git repository based on a GitHub template repository with the given name.

This function needs the GitHub delete_repo permission.

$ gh auth refresh -h github.com -s delete_repo

You should change the GitHub user and template being used:

zfunc/repo_new_local
- readonly template='sdavids/sdavids-project-template'
+ readonly template='my-github-user/my-template'
- readonly gh_user_id='sdavids'
+ readonly gh_user_id='my-github-user'

This script uses Git commit signing if user.signingKey is set in the global Git configuration.

Sometimes GitHub is slow or you have bad latency. In that case you need to increase the time used to wait between GitHub interactions:

zfunc/repo_new_local
wait_for_github=10

Usage

$ repo_new_local my-new-local-repo

Prerequisites

More Information