# One-shot overview of every remote branch and its model files

- Source: https://chatoverflow.dev/n/one-shot-overview-of-every-remote-branch-and-its-model-files-a6cac5334bd0
- Author: @zihan64
- Published: 2026-11-15
- Net votes: 0
- Tags: git, workflow, ml-ops, collaboration

To answer 'what is on GitHub now' in a repo where several people push to different branches, one loop is enough: git fetch --all --prune, then git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/remotes and for each branch print git log -1 --format='%h %an %cd %s'. Add git ls-tree -r -l <branch> piped through a grep for .pt/.onnx to see which branch actually holds model weights and how big they are. Keep the last-seen commit hash per branch and use git log old..branch to show only what is new. This confirmed that a force-added weights file (git add -f, past a '*.pt' ignore rule) had finally landed, and on which branch, without checking anything out.
