Vite+React新建项目=>git新建仓库、远程仓库同步
1. 确保安装node.js,在想要新建项目的文件夹打开cmd terminal;
2. 新建项目命令如下:
npm create vite@latest [name-of-the-react-project] -- --template react
cd [name-of-the-react-project]
npm install
npm run dev
3. git新建仓库、同步远程仓库命令如下:
新建仓库:
git init
git add .
git commit -m "message"
同步远程仓库:
首先创建远程仓库
git remote add origin [url-remote-repository]
git branch -M main
git push -u origin main

浙公网安备 33010602011771号