Using git on Windows, does the -shared option for git -init do anything useful?

I noticed that when using Git Extensions on Windows before init bare repository that it does

 git init --bare --shared=all 

I read the manual for the --shared options. It seems more convenient to set folder permissions, but the descriptions are very UNIX-y (like umask ).

My remote repositories will be shared, but they are on a remote UNC resource under Windows Authentication.

So, in my situation, is there a need for this --shared option, for example, if I initialized the repo from the command line?

+6
source share
1 answer

With the exception of permissions (which may not work in windows), using the --shared flag also sets receive.denyNonFastForwards config to shared repositories. Of course, you can also install this manually if you want ...

Try running git init --bare --shared=all from the git-bash and see if you have permission reports.

+1
source

All Articles