News for hackers. Stuff that matters.
Re:Git Tips And Workflows by grannyg00se on Wednesday December 05, 2012 @01:04PM (#4877553)
>No. Each developer works in her private repo, for sharing work you use a bare repo people push to / fetch from

What do you mean by a "bare repo"? blhack wants to make it so that they commit code into the same repo. You could do that by setting up a repository somewhere, and then each person would clone it.

Re:Git Tips And Workflows by 2mur on Wednesday December 05, 2012 @01:30PM (#4877714)
--bare ensures you don't have a working directory. It is the bare .git directory only. You don't want people pushing to your working directory. Simple as that.
Re:Git Tips And Workflows by mrnil on Wednesday December 05, 2012 @01:28PM (#4877698)
No, you are mixing things up here. commit is a local operation.
Re:Git Tips And Workflows by grannyg00se on Wednesday December 05, 2012 @03:06PM (#4878251)
I didn't mean to indicate it wasn't.

You could setup a remote and each person could clone that remote.

I left out the details about what you do after you clone (push/pull), but the point was that there is nothing special about the remote repository as far as it being "bare". Which turns out isn't right. You can set up a bare repository with no working directory as 2mur has pointed out. I wonder if that is a requirement. I always thought that if you clone a repository you can just start using it as a remote without additional hassle.

Re:Git Tips And Workflows by mrnil on Wednesday December 05, 2012 @03:22PM (#4878337)
> Which turns out isn't right.

Sorry, you lost me; what's not right?

> You can set up a bare repository with no working directory

A bare repository has no working tree per se.

> I wonder if that is a requirement. I always thought that if you clone a repository you can just start using it as a remote without additional hassle

You can use bare and non-bare repositories as remote, but you should use only bare repositories (unless you know what you are doing). Here's a good explanation: http://bare-vs-nonbare.gitrecipes.de/