IMO --bare is an option to Git’s init command so it should be git init --bare xxx.
But why Git choose “git –bare init xxx” to “git init –bare xxx”?
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.
You can pass
--bareas an option togit-init, but--bareis actually also an option you can pass togititself, causing it to treat the repository as a bare repository.