Added fairly safe default for gitconfig, sharedrepository. Fix samba
issues