git-bare

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

こ雲淡風輕ζ 提交于 2019-11-26 01:37:15
问题 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, and why I should \"push\" to a bare repository. Here\'s the deal: Currently, I\'m the only one working on a project on 3 different computers, but there will be more people involved in it later, so I\'m using Git for the version control. I clone the bare repo on all computers, and when I finish my modifications on one of

concept of bare shared repository in git

戏子无情 提交于 2019-11-26 00:34:29
问题 I have been facing difficulty in understanding the bare repository . I have read everywhere that a shared repo is a bare repo. Why must it be a bare repo? Can\'t it be a normal repo which collaborators clone and then push/pull? 回答1: It needs to be a bare repo because a not bare repo would have a working tree (meaning a specific version of that repo checked out and with files visible). Each time you are pushing to a non-bare repo, you have no guarantee that its working tree will reflect what

How to convert a normal Git repository to a bare one?

拟墨画扇 提交于 2019-11-25 23:19:40
问题 How can I convert a \'normal\' Git repository to a bare one? The main difference seems to be: in the normal git repository you have a .git folder inside the repository containing all relevant data and all other files build your working copy in a bare Git repository, there is no working copy and the folder (let\'s call it repo.git ) contains the actual repository data 回答1: In short: replace the contents of repo with the contents of repo/.git , then tell the repository that it is now a bare

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

泄露秘密 提交于 2019-11-25 20:33:48
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, and why I should "push" to a bare repository. Here's the deal: Currently, I'm the only one working on a project on 3 different computers, but there will be more people involved in it later, so I'm using Git for the version control. I clone the bare repo on all computers, and when I finish my modifications on one of them, I commit and push the changes to the bare repo. From what I've read, the bare repository does NOT have a