Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.27 KB

File metadata and controls

35 lines (24 loc) · 1.27 KB

Create a new repo from the template

Once you have followed the tutorial, you can use copier to make a new project from the template:

git init --initial-branch=main /path/to/my-project
# $_ resolves to /path/to/my-project
uvx copier copy https://github.com/DiamondLightSource/python-copier-template.git $_

This will:

  • Ask some questions about the project to be created
  • Expand the template with the answers give
  • Record the answers in the project so they can be used in later updates
  • Create a git repository if the directory is not already one

Committing the results

You can now check what the template has created, tweak the results if desired, , and commit the results:

$ cd /path/to/my-project
$ uv sync
$ git add .
$ git commit -m "Expand from python-copier-template x.x.x"

Uploading to GitHub

You can now create a new blank project on GitHub. Choose the same GitHub owner, repo name and description that you answered in the questions earlier. GitHub will now give you the commands needed to upload your repo from GitHub.

Getting started with your new repo

You can now , , and then follow some of the other .