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

后端 未结 11 2256
南方客
南方客 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:37

    $ git help repository-layout

    A Git repository comes in two different flavours:

    • a .git directory at the root of the working tree;
    • a .git directory that is a bare repository (i.e. without its own working tree), that is typically used for exchanging histories with others by pushing into it and fetching from it.

提交回复
热议问题