Skip to content

Đừng theo dõi bytecode - #2

Merged
meocong merged 1 commit into
masterfrom
chore/gitignore
Aug 13, 2026
Merged

Đừng theo dõi bytecode#2
meocong merged 1 commit into
masterfrom
chore/gitignore

Conversation

@meocong

@meocong meocong commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Một .pyc lọt vào commit trước. .gitignore chặn __pycache__/, *.pyc, và build/ — chỗ export ghi model ra, thứ README đã nói là không bao giờ vào git.

Một file `.pyc` lọt vào commit trước vì `compileall` chạy ngay trước `git add -A`.
Bytecode là thứ sinh ra được, và một file sinh ra nằm trong git là thứ gây xung
đột merge mà không ai đọc được nội dung để giải quyết.

`.gitignore` cũng chặn luôn `build/` — chỗ `export.py` ghi ra model. Đó là điều
README đã nói bằng lời; giờ có một file thi hành nó, vì một quy ước không được
kiểm tra là một quy ước sẽ bị vi phạm vào lúc bận nhất.
@meocong
meocong merged commit 8343dbf into master Aug 13, 2026
8 checks passed
@meocong
meocong deleted the chore/gitignore branch August 13, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant