// global
npm i -g github:thjjames/th-cli
th-cli create <project-name>
// immediate
npx github:thjjames/th-cli@latest create <project-name>run scripts after template created
cd <project-name>
npm install
npm run devinit new branch by folder, do not repeat
git subtree split --prefix=template/xxx -b xxx --rejoininit folder by branch, do not repeat
git subtree add --prefix=template/xxx https://github.com/thjjames/th-cli xxxsync subtree's code to parent
git subtree pull --prefix=template/xxx https://github.com/thjjames/th-cli xxxsync parent's code to subtree
git subtree push --prefix=template/xxx https://github.com/thjjames/th-cli xxxtianhaojun [email protected]
please create issues on https://github.com/thjjames/th-cli/issues or send an email on [email protected]