Skip to content

Instantly share code, notes, and snippets.

@Gkiokan
Created June 21, 2017 06:37
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 Gkiokan/5419aa2929238d78f948a2e4b3bc942a to your computer and use it in GitHub Desktop.
Save Gkiokan/5419aa2929238d78f948a2e4b3bc942a to your computer and use it in GitHub Desktop.
Reset File Permission for Git Repositories
# 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