I know that I have to be restrained and use git in the terminal, but I use a git client on a Mac called Sourcetree to make it all a little sexier.
The problem is the new Synology NAS, which I added to my setup. With one of the NAS shared folders installed on my Mac, Sourcetree suffocates when trying to execute / commit / click.
My main branch is on GitHub, so I cloned the repo to a mounted drive using Sourcetree. As a quick test, I edited a non-essential file, saved and watched for unidentified changes in the client. Success so far; the edited file appears in an uninstalled Sourcetree window. I'm going on stage. Fatal error:
git -c diff.mnemonicprefix = false -c core.quotepath = false -c credential.helper = sourcetree add -f - README.md
fatal: unable to write new index file
Done with errors, see above
I looked at the file’s file permissions in a hidden .git folder (using the NAS directory explorer because the Mac doesn’t show the hidden file. File permissions were read, written, but not executed. After the file was resolved, the scene / commit / push attempts with Sourcetree worked.
Obviously, I don’t want to go and manually configure file permissions every time I clone a git repository, so does anyone know why Sourcetree / Git does not create a repo clone with more useful file permissions?
For the record, I tried the same operation with the GitHub OSX client, which seemed successful (there is no need to edit permissions). But I believe that the GitHub client is a bit primitive and prefers to use Sourcetree.