Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marcelosantos/3ca5d192269c9d8349a6621f34efb132 to your computer and use it in GitHub Desktop.
Save marcelosantos/3ca5d192269c9d8349a6621f34efb132 to your computer and use it in GitHub Desktop.
Adding only modified files to git stage

Adding only modified files to git stage

git ls-files --modified | xargs git add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment