Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
R
rentos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
accounting
rentos
Commits
deac4306
Commit
deac4306
authored
Oct 13, 2026
by
wenwen.tang
😕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 补记 pull 未生效的根因(fetch 带分支名只更新 FETCH_HEAD)
parent
51c66dbf
Pipeline
#839
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
2026-10-13.md
.workbuddy/memory/2026-10-13.md
+5
-1
No files found.
.workbuddy/memory/2026-10-13.md
View file @
deac4306
...
@@ -88,12 +88,16 @@
...
@@ -88,12 +88,16 @@
不再依赖未入库的 `
deploy/wecom/x/
`
不再依赖未入库的 `
deploy/wecom/x/
`
- 新增 `
.dockerignore
`(上下文变成仓库根后必须裁剪 `
.git
` / `
data
` / `
output
` / `
samples
` 等)
- 新增 `
.dockerignore
`(上下文变成仓库根后必须裁剪 `
.git
` / `
data
` / `
output
` / `
samples
` 等)
###
两个构建
坑(都已修)
###
三个
坑(都已修)
1. Dockerfile 在 `
deploy/
` 下,必须 `
-f
` 指定,否则报
1. Dockerfile 在 `
deploy/
` 下,必须 `
-f
` 指定,否则报
`
failed to read dockerfile: open Dockerfile: no such file or directory
`
`
failed to read dockerfile: open Dockerfile: no such file or directory
`
2. **`
docker build … | tail
` 的退出码来自 tail**,会把构建失败**吞掉** —— 症状是
2. **`
docker build … | tail
` 的退出码来自 tail**,会把构建失败**吞掉** —— 症状是
"构建明明报错,脚本却继续用旧镜像重启容器"。改为重定向日志 → 取真实 rc → 回显尾部
"构建明明报错,脚本却继续用旧镜像重启容器"。改为重定向日志 → 取真实 rc → 回显尾部
3. **`
git fetch origin
<branch>
` 只更新 FETCH_HEAD**,不会更新
`
refs/remotes/origin/
<branch>
` → 随后的 `
git reset --hard origin/main
` 仍指向旧提交。
症状:sync 表面成功,服务器 repo 却停在旧版本(实测停在 `
0f4af2e
`,落后远端 3 个提交)。
必须用**不带分支名**的 `
git fetch origin
`
### 数据迁移(线上)
### 数据迁移(线上)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment