One of the commands I find incredibly useful in Git is git add -u to throw everything but untracked files into the index. Is there an inverse of that? In the la
git add -u
It's easy with git add -i. Type a (for "add untracked"), then * (for "all"), then q (to quit) and you're done.
git add -i
a
*
q
To do it with a single command: echo -e "a\n*\nq\n"|git add -i
echo -e "a\n*\nq\n"|git add -i