[CE] Move git operations for UpdateRemoteMirrorService into Gitlab::Git
CE backport of relevant changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3824/commits
CE backport of relevant changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3824/commits