Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you have a shared Git repository on a shared directory on a multiple user Mac
- and you cannot edit anything because the repo belongs to the other user,
- you can fix that by:
- First, grant yourself the permission to all files (recursively):
- ```shell
- cd <YOUR-SHARE-GIT-REPO-PATH>
- sudo chmod -R 777 $(pwd)
- ```
- Now your (stupid) Git client app showing all the files as edited, just have the courage to reset (hard).
- ```shell
- git reset --hard
- ```
- Do the same thing to every submodule.
- ```shell
- git submodule foreach 'git reset --hard'
- ```
- Btw, if you're not a Mac admin user: good luck !
Add Comment
Please, Sign In to add comment