Re: [git-users] Repository arrangements

2013-06-17 Thread Roddie Grant

On 13/06/2013 13:42, Philip Oakley wrote:

From: Roddie Grant gitl...@myword.co.uk
Sent: Thursday, June 13, 2013 12:11 PM

Where there is a small team, say 3 or 4 developers, is it acceptable
practice to pull direct from each other's repositories?


There is no special restriction on this (pull or fetch) to share
branches between each other. The usual social niceties should apply
(Please and Thank you and all that ;-)

You can't push to a checked out branch though, as that is likely to be a
conflict (there could be changes in the checked out work tree, even if
the push was a fast forward) at the destination/remote end. In such
cases (fighting to push first) the central bare repo has benefits.


Or is it considered better (strongly advised?) to have an overall bare
repository to which commits are pushed, and then pulled by each of the
developers?


It is still worth having a central team repo (bare) so that you have
implicit backup and can agree on it being the 'blessed repo' that has
all the usual benefits.



Thanks

Roddie Grant


Philip


Thanks Philip

That's very helpful.

Roddie

--
You received this message because you are subscribed to the Google Groups Git for 
human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] Repository arrangements

2013-06-13 Thread Roddie Grant
Where there is a small team, say 3 or 4 developers, is it acceptable 
practice to pull direct from each other's repositories?


Or is it considered better (strongly advised?) to have an overall bare 
repository to which commits are pushed, and then pulled by each of the 
developers?


Thanks

Roddie Grant

--
You received this message because you are subscribed to the Google Groups Git for 
human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] Repository arrangements

2013-06-13 Thread Philip Oakley

From: Roddie Grant gitl...@myword.co.uk
Sent: Thursday, June 13, 2013 12:11 PM
Where there is a small team, say 3 or 4 developers, is it acceptable 
practice to pull direct from each other's repositories?


There is no special restriction on this (pull or fetch) to share 
branches between each other. The usual social niceties should apply 
(Please and Thank you and all that ;-)


You can't push to a checked out branch though, as that is likely to be a 
conflict (there could be changes in the checked out work tree, even if 
the push was a fast forward) at the destination/remote end. In such 
cases (fighting to push first) the central bare repo has benefits.


Or is it considered better (strongly advised?) to have an overall bare 
repository to which commits are pushed, and then pulled by each of the 
developers?


It is still worth having a central team repo (bare) so that you have 
implicit backup and can agree on it being the 'blessed repo' that has 
all the usual benefits.




Thanks

Roddie Grant

Philip 


--
You received this message because you are subscribed to the Google Groups Git for 
human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.