@Override
    public void push() throws Exception {
        val remotes = gitInstance.remoteList().call();
        if (!remotes.isEmpty()) {
            val providers = credentialsProvider.toArray(CredentialsProvider[]::new);
            gitInstance.push()
                .setTimeout((int) timeoutInSeconds)
                .setTransportConfigCallback(transportConfigCallback)
                .setPushAll()
                .setCredentialsProvider(new ChainingCredentialsProvider(providers))
                .call();
        }
    }
This is {@link DefaultGitRepository}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-git-core/src/main/java/org/apereo/cas/git/DefaultGitRepository.java