implement getBranches for github