Multi-level clones with Git?
Posted
by Chad Johnson
on Stack Overflow
See other posts from Stack Overflow
or by Chad Johnson
Published on 2010-04-20T01:41:08Z
Indexed on
2010/04/20
1:43 UTC
Read the original article
Hit count: 380
So, I'm thinking of having the following centralized setup with Git (each of these are clones):
stable
development
developer1
developer2
developer3
So, I created my stable repository
git --bare init
made the 'development' clone
git clone ssh://host.name//path/to/stable/project.git development
and made a 'developer' clone
git clone ssh://host.name//path/to/development/project.git developer
So, now, I make a change, commit, and then I push from my developer account
git commit --all
git push
and the change goes to the development clone.
But now, when I ssh to the server, go to the development clone directory, and run "git fetch" or "get pull", I don't see the changes.
So what do I do? Am I totally misunderstanding things and doing things wrong? How can I see the changes in the 'development' clone that I pushed from my 'developer' clone? This worked fine in Mercurial.
© Stack Overflow or respective owner