What's the -practical- difference between a Bare and non-Bare repository?

后端 未结 11 2261
南方客
南方客 2020-11-22 16:16

I\'ve been reading about the bare and non-bare / default repositores in Git. I haven\'t been able to understand quite well (theoretically) about the differences between them

11条回答
  •  一个人的身影
    2020-11-22 16:26

    A bare repository is nothing but the .git folder itself i.e. the contents of a bare repository is same as the contents of .git folder inside your local working repository.

    • Use bare repository on a remote server to allow multiple contributors to push their work.
    • Non-bare - The one which has working tree makes sense on the local machine of each contributor of your project.

提交回复
热议问题