Get the current branch for a local git repository