Add a option 'shared' for the type of git repository to create

--shared is used to specify the permission of the
git repository.
Merge pull request #19046 from mscherer/add_shared_options_git

Add a option 'shared' for the type of git repository to create