code: func (e *endpointGitFinder) ReplaceUrlAlias(operation, rawurl string) string {
  	e.aliasMu.Lock()
  	defer e.aliasMu.Unlock()
  
  	if operation == "upload" {
  		if rawurl, replaced := e.replaceUrlAlias(e.pushAliases, rawurl); replaced {
  			return rawurl
  		}
  	}
  	rawurl, _ = e.replaceUrlAlias(e.aliases, rawurl)
  
  	return rawurl
  }
docs: // ReplaceUrlAlias returns a url with a prefix from a `url.*.insteadof` git
  // config setting. If multiple aliases match, use the longest one.
  // See https://git-scm.com/docs/git-config for Git's docs.