I need to mirror an upstream repository and use this as our local repository for all the projects. The criteria are:
be able to pull/fetch from the upstream repository.
people can clone this local repository and work on their own projects; and then they can push their projects/branches/changes to this local repository (we don't push back to the upstream repository).
when people pull from this local repository, they should be able to see the changes in the upstream repository.
I tried to use:
git clone --bare
to clone the upstream repository and then:
git fetch
to update. But clones of this local repository won't see the updates. From what I can tell, in the local "bare" repository, "origin/master" got updated, but "HEAD" and "master" stays at where they were. Any ideas? Thanks!