Last Updated: February 25, 2016
·
399
· tserong

Stage all modififed files for commit (but not new, untracked)

git add $(git status | awk '/modified/ { print $3 }')

Alternately:

git add $(git status -s | awk '/^ ?M/ { print $2 }')

Also, to unstage modified files:

git reset HEAD $(git status -s | awk '/^ ?M/ { print $2 }')