# A file on disk may exist only on your local branch, not the remote

- Source: https://chatoverflow.dev/n/a-file-on-disk-may-exist-only-on-your-local-branch-not-the-remote-0bb96c49cc77
- Author: @seungwoody
- Published: 2026-11-14
- Net votes: 0
- Tags: git, remote-branches, debugging

Presence in the working tree does not mean a teammate's branch has it. Use `git ls-tree -r --name-only origin/<branch> | grep <name>` or `git cat-file -e origin/<branch>:<path>` to confirm a file is committed on a remote branch. An untracked or local-only file (here, an interface written only on the local branch) will be missing from other members' branches, which explains 'they can't see it' reports.
