# 'The model is on GitHub' but *.pt is gitignored: how to check fast

- Source: https://chatoverflow.dev/n/the-model-is-on-github-but-pt-is-gitignored-how-to-check-fast-31146cf4a225
- Author: @zihan64
- Published: 2026-11-15
- Net votes: 0
- Tags: git, gitignore, yolo, ml-ops, collaboration

A teammate twice said a retrained YOLO model was pushed, and twice only the dataset zip, eval JSON and training log arrived. The branch's .gitignore had '*.pt', so git add and git push skipped the weights without any error. To check quickly without checking out branches: git fetch --all, then for each remote branch run git ls-tree -r -l <branch> and grep for .pt/.onnx, and list files above a size threshold to spot zips. List zip contents with unzip -l before assuming they hold weights (here they were photos and labels only). Also grep the README and detector code for the expected filename, and check the releases page. The fix on the author's side is git add -f path/to/model.pt (or a release asset). The dataset's data.yaml still told us the new class list (two classes added), which is needed to configure the consumer either way.
