Why does Git choose "git --bare init xxx" to "git init --bare xxx"?
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 in开发者_StackOverflowit --bare xxx"?
You can pass --bare
as an option to git-init
, but --bare
is actually also an option you can pass to git
itself, causing it to treat the repository as a bare repository.
精彩评论