It’s easy with git add -i. Type a (for “add untracked”), then * (for “all”), then q (to quit) and you’re done.
To do it with a single command: echo -e "a\n*\nq\n"|git add -i
It’s easy with git add -i. Type a (for “add untracked”), then * (for “all”), then q (to quit) and you’re done.
To do it with a single command: echo -e "a\n*\nq\n"|git add -i