Created
June 21, 2017 06:37
-
-
Save Gkiokan/5419aa2929238d78f948a2e4b3bc942a to your computer and use it in GitHub Desktop.
Reset File Permission for Git Repositories
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
# You may need this after permission errors | |
# when you move a repository from a user to another one. | |
# Removing hidden flags | |
sudo chflags -R nouchg ./git/* | |
# Set the current user as owner | |
sudo chown -R $(whoami) ./git/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment