Note: if composer fails to find the branch (“The requested package user/repo branch could not be found.”) try clearing the cache with composer clear-cache. That fixed the issue for me.