tags:

views:

64

answers:

1

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.

A: 

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