Skip to content

Instantly share code, notes, and snippets.

@nabinno
Created August 9, 2016 02:11
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 nabinno/0acd1116c22bd990be2e7b69d18568c9 to your computer and use it in GitHub Desktop.
Save nabinno/0acd1116c22bd990be2e7b69d18568c9 to your computer and use it in GitHub Desktop.
git-awk-xargs-cp
(cd ../foo.org && git status -sb | awk '$1=="M"{print $2}' | xargs -i cp -f {} ../foo/{})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment