Why is nothing staged for logs/?
$ mkdir logs $ git add logs $ git status --short (no output)
- New folders are ignored until committed
- Directories need
git add -rto stage - Git tracks files, not empty directories
- The name
logsis reserved by Git
Trees only record entries for content, so an empty directory has nothing to store. A placeholder file such as
Play Git ▸
.gitkeep is the usual workaround.