Created
January 17, 2017 07:49
-
-
Save skounis/087debc168a26eb7ddf65b654349aa01 to your computer and use it in GitHub Desktop.
Secure .git folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BASE_PATH=/var/www/html | |
find $BASE_PATH/. -name ".git" -exec chown root:root -R {} \; | |
find $BASE_PATH/. -name ".git" -exec chmod a-rxw -R {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment