12 lines
782 B
Markdown
12 lines
782 B
Markdown
# 常用命令(Windows / PowerShell)
|
||
- 进入项目根目录:`cd D:\WorkSpace\me\xzmaster`
|
||
- 查看目录:`Get-ChildItem`
|
||
- 按名称递归查文件:`Get-ChildItem -Recurse -Filter <name>`
|
||
- 文本搜索(优先 ripgrep):`rg <pattern>`;若系统无 `rg`,可用 `Get-ChildItem -Recurse | Select-String -Pattern <pattern>`
|
||
- 启动后端:`cd backend; mvn spring-boot:run`
|
||
- 后端测试:`cd backend; mvn test`
|
||
- 启动前端开发环境:`cd frontend; npm install; npm run dev`
|
||
- 前端构建验证:`cd frontend; npm run build`
|
||
- 前端预览:`cd frontend; npm run preview`
|
||
- Git 基本状态(若当前目录后续接入 Git):`git status`, `git log -5 --stat`
|
||
- 当前工作区未确认是标准 Git 仓库前,不要假设完整 Git 流程可用。 |