Git basic understanding -
if managing project , have 2 developers working me , starting track project today. project located publicly on www.somedomain.com
.
then create centralized repository would:
//ssh + cd directory want track, git init --bare myrootdirectory.git
then developers working on project clone repository onto local machine , use wish, making changes , developing projects on local machine. bit confused.
how developers commit code onto central repository, if used --bare
, wouldn't prevent them doing that?
what happens after project component has been tested developer , track on centralized repository used --bare
on?
also, changes developers make on local machine commit, available on local machine, or on centralized repository well? read there link between centralized repository , local 1 on developers machine, why asking.
i appreciate clarification, in advance!
the answer 2 git repositories, (one bare, , 1 not), linked hooks. can read more in this article, i'll explain shortly:
the server holds 2 repos, "public" one, , "work" 1 (which bare), push , pull "work", , "work" has git hook goes "public" , automatically pulls changes when gets pushed into.
don't push non-bare repository, causes problems.
Comments
Post a Comment