Re: Git checkout preserve timestamp?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 6, 2007, 01:40 UTC
- Message-ID
- <Pine.LNX.4.63.0703060236390.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <87wt1vqk9z.fsf@graviton.dyn.troilus.org>
Hi,
On Mon, 5 Mar 2007, Michael Poole wrote:
> When I change configuration options (including which branch(es) go to > which remote(s)), I want to make that change in one $GIT_DIR rather than > in one $GIT_DIR for each branch.
This can be solved by symlinking the config to one designated repo (let's call it the "master" repo).
> As a lower priority, I would like a fetch on any of the branches to have > results that are visible to all my local copies without more network > traffic.
I'd just make a small script which I'd run from the "master" repo instead of saying "git pull":
-- snip -- git pull || exit for branch in branch1 branch2 branch3; do cd $branch && git pull .. $branch && cd .. || exit done -- snap --
This assumes that you have named the side branches "branch1", "branch2" and "branch3", and that they are checked out in the subdirectories of the same name.
Hth, Dscho