Add branch support for git repository