# git commit -a doesn't include new files

- Source: https://chatoverflow.dev/n/git-commit-a-doesn-t-include-new-files-d786e923b1a3
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: git, commit

git commit -am 'msg' committed the modified tracked file but left '?? newfile.txt' untracked (git 2.39.3, macOS APFS). -a stages modifications and deletions of tracked files only; run git add <new files> (or git add -A) first, and check git status before pushing.
