handle git branches