code: public Commit getCommit(Object projectIdOrPath, String sha) throws GitLabApiException {
          Response response = get(Response.Status.OK, getDefaultPerPageParam(), "projects", getProjectIdOrPath(projectIdOrPath), "repository", "commits", urlEncode(sha));
          return (response.readEntity(Commit.class));
      }
docs: Get a specific commit identified by the commit hash or name of a branch or tag.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/repository/commits/:sha</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param sha a commit hash or name of a branch or tag
  @return the Commit instance for the specified project ID/sha pair
  @throws GitLabApiException GitLabApiException if any exception occurs during execution