[git-users] can I make two local repos be identical, always, except for current branch?

2013-10-31 Thread Huu Da Tran
You want to have all remote branches to be always sync'ed but not your local 
branches? So basically, you want git fetch to update both clones?

I am not sure it makes sense speaking of current branch in two different repos 
and keeping non-current branches sync'ed.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[git-users] can I make two local repos be identical, always, except for current branch?

2013-10-25 Thread Sam Roberts
basically, I've got clones of some expensive-to-build projects
(node.js), and I have changes that I want to rebase/cherry-pick onto
dev and stable branches.

I know I can push to a remote, then pull into my other, and keep the
two on different branches so the builds don't get out of date. But, I
think I'd like it if they all just shared the same objects, branches,
etc...

Could I symlink together my
.git{branches,config,hoks,logs,objects,packed-refs,refs} directories?
Is this just going to kill me later?

Sam

p.s. Its not --reference I want, I'm using that already, but it
doesn't make my changes in one local clone automatically be present in
another local clone.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.