克隆项目
方式1:通过仓库提供的Use this templateClone到你自己的仓库(推荐)


成功后,自动进入新仓库

执行clone到你本地, 例如:
git clone git@github.com:glitch-8501/test1.git
至此方式1克隆项目完毕,不用往下看了。
方式2:通过仓库源码创建项目
下面命令中的
my-shipany-project是你新项目名字,注意改下
(1)基于main分支
git clone -b main git@github.com:glitch-8501/shipany-template-navigation my-shipany-project
(2)基于cf分支
此分支基于 Next.js 15.5.5,暂不支持 Next.js 16。
git clone -b cf git@github.com:glitch-8501/shipany-template-navigation my-shipany-project
注意:上面的Clone会把源代码的.git远程仓库也Clone下来了,需要按照下面执行下命令,要不然你提不上到你自己的仓库
cd my-shipany-project
rm -rf .git
git init
git add -A
git commit -m "feat: first commit"
下面的xxx/xxxxx 指 gitub username/you project name(你的项目名),例如:git remote add origin https://github.com/glitch-8501/test.git
git remote add origin git@github.com:xxx/xxxxx.git
git branch -M main
git push -u origin main