Skip to content

Instantly share code, notes, and snippets.

@isaaguilar
Created March 26, 2018 15:42
Show Gist options
  • Save isaaguilar/58429e67c6379a6d1e525143b750aa71 to your computer and use it in GitHub Desktop.
Save isaaguilar/58429e67c6379a6d1e525143b750aa71 to your computer and use it in GitHub Desktop.
Add only modified files to be committed in git
git status -s |grep '^ M'|while read _ p;do git add $p;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment