29 lines
442 B
Markdown
29 lines
442 B
Markdown
# 常用命令
|
|
|
|
在 Windows PowerShell 中查看文件:
|
|
|
|
```powershell
|
|
Get-ChildItem -Force
|
|
rg --files --hidden -g "!.git/**"
|
|
Get-Content -Path <file>
|
|
```
|
|
|
|
构建镜像:
|
|
|
|
```bash
|
|
./rebuild.sh gitea_runner_base
|
|
./rebuild.sh gitea_runner_node
|
|
./rebuild.sh <image_dir> [version] [save]
|
|
```
|
|
|
|
手动 Docker 构建:
|
|
|
|
```bash
|
|
docker build -t timi/<image_dir>:latest ./<image_dir>
|
|
```
|
|
|
|
查看 Git 状态:
|
|
|
|
```powershell
|
|
git status --short
|
|
``` |