开发者

Why does Git choose "git --bare init xxx" to "git init --bare xxx"?

开发者 https://www.devze.com 2023-03-28 16:04 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号