Checkout function in GTRespository to checkout branches