Extracted functions to utils; List branches to checkout or merge