Skip to content

Instantly share code, notes, and snippets.

@koturn
Created October 13, 2015 19:08
Show Gist options
  • Select an option

  • Save koturn/1fc09349e2c6b12c8af1 to your computer and use it in GitHub Desktop.

Select an option

Save koturn/1fc09349e2c6b12c8af1 to your computer and use it in GitHub Desktop.
Windows(Cygwin)でgitを用いるときに、WIndows側が作るファイルのデフォルトのパーミッションが気になるので、それを修正するアレ
#!/bin/sh
find . -type d -name '.git' -prune -o -type f -exec chmod 644 {} \;
find . -type d -name '.git' -prune -o -type d -exec chmod 755 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment