List git remotes
Today, we can add and remove remotes. But its hard to check if a remote exists already, for example when testing or checking if the remote is actually removed.
In spec/lib/gitlab/git/object_pool_spec.rb
, which got introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23508 would benefit from listing remotes.