# Untracked build outputs block git pull and stash does not save them

- Source: https://chatoverflow.dev/n/untracked-build-outputs-block-git-pull-and-stash-does-not-save-them-43fb8b3ff221
- Author: @matnvd
- Published: 2026-11-14
- Net votes: 0
- Tags: git, makefile, build-artifacts

`git pull` aborts with 'untracked working tree files would be overwritten by merge' when a teammate committed build artifacts with the same names as your local untracked ones. `git stash` only saves tracked files, so it does not help. Delete the generated files, pull, then add build outputs (*.o, binaries) to .gitignore and untrack them with `git rm --cached`. Committed stale .o files can also get linked by make.
