views:

144

answers:

4

What would you suggest as a work flow when there is a inexperienced developer joins the team i have been using git for my projects now a new developer will join but he has not used any version control before. Project resides in github and i have no way of pulling directly with him. We are both behind firewalls.

Should i create a branch for him on github and merge it to master my self or do i ask him for patches at the end of the day.

A: 

Let him work purely locally on his own client. Whenever you want you pull from his client merging into yours and reviewing the changes. Whenever you want you push into his client.

J. Pablo Fernández
We are both behind firewalls that we have no control. I can't push/pull to/from him.
Hamza Yerlikaya
Oh! I misunderstood that as we are both in the same nets behind a firewall. My apologies. I wouldn't create a branch for someone to work on, I would create branches only for projects, experiments, etc; but in your case, it may make the most sense.
J. Pablo Fernández
A: 

Both options sound like ideas. Letting him push his stuff to github will give you a free off-site backup of his work though.

David Schmitt
+2  A: 

I haven't worked much with github (I do use it, but only the very basic stuff), but I've seen a "fork this project" feature, and a "request pull".

I suppose he can fork the project and request you to pull from his fork (instead of from his machine).

This is assuming that the fork will create a project for him, where he can push his changes to github, then you can pull from his github project, then push it to the main one, where he pulls from.

hasen j
+1  A: 

I really like using git format-patch to turn a set of commits into mails. Then you can mail the changes and reapply them in the other end. It also means you can discuss the changes on a mailing list etc.

For me, this is a brilliant way to work. You get code reviews in the same process and since email usually can go over firewalls, they are not that much of a problem. Getting the repository in shape is another game though.

jlouis