// 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 dev
init new branch by folder, do not repeat
git subtree split --prefix=template/xxx -b xxx --rejoin
init folder by branch, do not repeat
git subtree add --prefix=template/xxx https://github.com/thjjames/th-cli xxx
sync subtree's code to parent
git subtree pull --prefix=template/xxx https://github.com/thjjames/th-cli xxx
sync parent's code to subtree
git subtree push --prefix=template/xxx https://github.com/thjjames/th-cli xxx
tianhaojun thjjames@163.com
please create issues on https://github.com/thjjames/th-cli/issues or send an email on thjjames@163.com