In git , how to clone a repositroy to another new repository with read only option is there any way to do it.are there any switches to do this
git clone base-url new-url-with read only access
I do not want to do it with chmod command
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
chmodcommand is your friend, as is theumaskcommand.Git itself does not have any access control, because the operating system and/or access protocol already has one, so it would be redundant. In fact, access to git repository may not involve git (it can even be pulled or even pushed with rsync), so git can’t control access.