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

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

    A bare repository has benefits in

    • reduced disk usage
    • less problems related to remote push (since no working tree is there to get out of synch or have conflicting changes)

提交回复
热议问题