code: private static String publicGitUrl(String gitUrl) {
          if (gitUrl != null && gitUrl.contains("https://") && gitUrl.contains("@")) {
              StringBuilder sb = new StringBuilder(gitUrl);
              int start = sb.indexOf("https://");
              int end = sb.indexOf("@") + 1;
              sb = sb.replace(start, end, StringUtils.EMPTY);
  
              return "https://" + sb.toString();
          }
  
          return gitUrl;
      }
docs: /*
  Git publish the repository credentials in the Url,
  this method will discard it.