@@ -33,6 +33,7 @@
|
||||
- [claude-code-rename](claude-code-rename.md) — --name 不可靠,必须用 /rename 持久化会话名称
|
||||
- [devcontainer-sync](devcontainer-sync.md) — templates/ 是单一信源,运行时文件由 Dockerfile/post-create.sh 生成
|
||||
- [tmux-send-keys-enter](tmux-send-keys-enter.md) — send-keys 后必须确认 Enter 已生效
|
||||
- [jj-untrack-ignored-files](jj-untrack-ignored-files.md) — jj 中 .gitignore 对已跟踪文件需用 jj file untrack
|
||||
|
||||
## 项目历史
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
name: jj untrack 忽略已跟踪文件
|
||||
description: jj 中 .gitignore 对已跟踪文件不生效,需用 jj file untrack 显式取消跟踪
|
||||
type: feedback
|
||||
originSessionId: 9d4067bc-0888-4284-b2a7-cf3b0f392839
|
||||
---
|
||||
已加入 `.gitignore` 的路径如果在 jj 工作副本中已被跟踪(`A` 状态),`.gitignore` 不会生效。
|
||||
|
||||
**Why:** jj 自动快照工作副本,`git rm --cached` 的改动会被 jj 重新快照覆盖。jj 有自己的文件跟踪机制。
|
||||
|
||||
**How to apply:**
|
||||
1. 先确认路径已加入 `.gitignore`
|
||||
2. 用 `jj file untrack 'glob:<path>/**'` 取消跟踪
|
||||
3. 验证 `jj status` 中不再显示该路径
|
||||
Reference in New Issue
Block a user