code: public Ref createTag(Git git, String name) {
          try {
              return git.tag()
                  .setName(name)
                  .call();
          } catch (GitAPIException e) {
              throw new IllegalStateException(e);
          }
      }
docs: Creates a tag.
  
  @param git
  instance.
  @param name
  of the tag.
  
  @return Ref created to tag.