Applying to Existing Projects
To apply this template to an existing project, follow these steps:
- Review the prerequisites from Getting Started and decide which method you are using
- Ensure your project is already using Git, and the all of the following are true:
- Project is cloned to your local computer
- All changes are committed
- Default branch (usually
main
ormaster
) is checked out - Create a new branch (
copier-template-apply
, for example) from your default branch -
Make sure your shell is in the project root, then run the appropriate command below based on the method you are using for prerequisites:
Docker
docker run -v .:/mnt/${PWD##*/} -w /mnt/${PWD##*/} -v ~/.gitconfig:/root/.gitconfig:ro -it --pull always --rm ghcr.io/natescherer/postmodern-tools-container:latest copier copy --trust --overwrite gh:natescherer/pm-repo-int .
Devcontainer/Manual
-
If you are using GitHub, Make sure to choose
Set Repo Rules
in the first question - Set all other settings as appropriate for your project
- Once the template is applied, review files that have been changed using git, and stage, discard, or modify as appropriate
- Commit and push the changes, then merge them via a Pull Request
- You are done, and your project will now operate the same as one that was generated from this template.