code: public Iterable<PushResult> pushToRepository(Git git, String remote) {
          try {
              return git.push()
                  .setRemote(remote)
                  .setPushAll()
                  .setPushTags()
                  .call();
          } catch (GitAPIException e) {
              throw new IllegalStateException(e);
          }
      }
docs: Push all changes and tags to given remote.
  
  @param git
  instance.
  @param remote
  to be used.
  
  @return List of all results of given push.