Skip to content

Instantly share code, notes, and snippets.

@vdeep
Created December 22, 2015 10:56
Show Gist options
  • Save vdeep/aa49cc51557cab7ba5bc to your computer and use it in GitHub Desktop.
Save vdeep/aa49cc51557cab7ba5bc to your computer and use it in GitHub Desktop.
Change permissions of file according to git status
chmod 755 `git status --porcelain | perl -nle '/M (.*)/ and print $1'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment