Skip to content

Instantly share code, notes, and snippets.

@gorangajic
Created January 21, 2016 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gorangajic/d5d3868fe38ca87bc2b1 to your computer and use it in GitHub Desktop.
Save gorangajic/d5d3868fe38ca87bc2b1 to your computer and use it in GitHub Desktop.
[alias]
deleted = !git status -s | grep ‘ D ‘ | awk ‘{print $2}’
modified = !git status -s | grep ‘ M ‘ | awk ‘{print $2}’
notadded = !git status -s | grep ‘??’ | awk ‘{print $2}’
changed = !git status -s | awk ‘{print $2}’ | grep -v ‘^$’
@gorangajic
Copy link
Author

usage

git changed | grep client/components/Header | xargs git add
git commit -m "added new awesome Header"

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