Maybe
git add $(git ls-files -o --exclude-standard)
git ls-files
lets you list the files managed by git, filtered by some options. -o
in this case filters it to only show “others (i.e. untracked files)”
The $(...)
statement passes the return value of that command as an argument to git add
.