private CredentialsProvider getGitCreds(GitRepoDoc gitRepoDoc) {
        String username = gitRepoDoc.getUsername();
        String password = gitRepoDoc.getPassword();
        return new UsernamePasswordCredentialsProvider(username, password);
    }
Returns the credentials to log into Git.

@param gitRepoDoc Where we get the credential data from. Must not be null.
@return Credentials to log into a remote GIT repo. Never returns null.
stroom-gitrepo/stroom-gitrepo-impl/src/main/java/stroom/gitrepo/impl/GitRepoStorageService.java