refactor: 统一 remote 名称为 origin
- gitea-api.md: 删除 remote 名称差异表,统一使用 origin - AI开发操作手册.md: push gitea main -> push origin main
This commit is contained in:
+2
-13
@@ -144,23 +144,12 @@ curl -s -X PATCH \
|
|||||||
|
|
||||||
## Git 推送命令
|
## Git 推送命令
|
||||||
|
|
||||||
各仓库 remote 名称不统一,推送前先确认:
|
所有仓库统一使用 `origin` 作为远程名称:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 查看 remote 名称
|
git push origin main
|
||||||
git remote -v
|
|
||||||
|
|
||||||
# 推送到远程(替换 {remote} 为实际的 remote 名称)
|
|
||||||
git push {remote} main
|
|
||||||
```
|
```
|
||||||
|
|
||||||
| 仓库 | 推荐 remote 名称 |
|
|
||||||
|------|----------------|
|
|
||||||
| rui-framework | origin |
|
|
||||||
| rui-cashier | origin |
|
|
||||||
| rui-payment | gitea |
|
|
||||||
| rui-frontend | origin |
|
|
||||||
|
|
||||||
## 注意事项
|
## 注意事项
|
||||||
|
|
||||||
1. **JSON 内容**: 建议使用文件方式(-d @file.json)避免转义问题
|
1. **JSON 内容**: 建议使用文件方式(-d @file.json)避免转义问题
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ git commit -m "feat: 功能描述
|
|||||||
- 详细修改点2"
|
- 详细修改点2"
|
||||||
|
|
||||||
# 推送到 Gitea
|
# 推送到 Gitea
|
||||||
git push gitea main
|
git push origin main
|
||||||
|
|
||||||
# 查看推送结果(钉钉会收到通知)
|
# 查看推送结果(钉钉会收到通知)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user