# change to new repo's directory
cd "{{cookiecutter.repo_name}}"
# initialize repository
git init
# switch to main branch
git checkout -b main
# add project files
git add .
# install hub: https://github.com/github/hub#installation
# create an access token with repo scope: https://github.com/settings/tokens
export GITHUB_TOKEN="my-token-here"
# create a private repository on GitHub from the command line (NOTE: omit -p to make public)
hub create -p "{{cookiecutter.organization}}/{{cookiecutter.repo_name}}"
# push initial version to remote
git push origin main
In post hook, print a description of next steps.
Docker
If docker enabled, ...
DOCKERHUB_USERNAME
to secretsDOCKERHUB_TOKEN
to secretsRepo
Pages
From repo settings, enable GH pages: https://github.com/{{cookiecutter.organization}}/{{cookiecutter.repo_name}}/settings/pages