Re: Git checkout preserve timestamp?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]