Extract branches from Git