2

I have a git bare repo that I manage and I want to have git auto create tracking branches for all the remote branches. That way no one has to auto create them.

I tried to do it in a post fetch hook, but couldn't get it working.

John K
  • 385
  • 1
  • 2
  • 11
  • Would http://stackoverflow.com/questions/379081/track-all-remote-git-branches-as-local-branches help (in a hook)? – VonC Apr 01 '10 at 20:20
  • I'm dying to get this working as well :) I assume you mean this should be done so no one has to manually create them. – rtn Jun 19 '10 at 13:36

1 Answers1

0

At least in Git 1.6.6, the "git fetch [remote]" command will create remote-tracking branches for all branches in the remote repository.

Alex Morega
  • 4,132
  • 1
  • 24
  • 25