Re: Working with remotes; cloning remote references
- From
Marc Branchaud <marcnarc@xiplink.com>
- Date
- Oct 16, 2008, 22:09 UTC
- Message-ID
- <48F7BBAC.2090907@xiplink.com>
- In-Reply-To
- <eaa105840810161345r69c9f05j66bb850085f561e7@mail.gmail.com>
Peter Harris wrote:
Show 5 quoted lines
> > Ah. I believe I misunderstood what you wanted. Perhaps you want "git > remote add", then? Unfortunately, you have to know what your remotes > are outside of git for this. Perhaps a script in the root of your > repository you can run to set this up after the initial clone?
I think we're converging onto the same track.
Yes, I do want to use "git remote add". My point is basically that, having done various git-remote-adds in the main repository, I'd like to avoid having to redo them in a clone of that repository.
A script would work, sure, but to me this seems like something git should handle for me. If I have to re-establish my connections to the remotes whenever I want to pull in updates, then I don't see much point in keeping the remotes defined in any git repo.
> I seem to recall some discussion of allowing a .gitconfig to be in > repositories (similar to .gitignore), but the idea was shot down for > security reasons.
I think I can understand why that would be undesirable, but I don't know if something like that would be necessary for what I'm talking about.
Marc