Interface GitRemote


public interface GitRemote
  • Method Details

    • add

      @Nonnull GitRemoteAddBuilder add(@Nonnull String name, @Nonnull Path url)
      Parameters:
      name - the name to assign the new remote
      url - a repository path, which will be used as the new remote's URL
      Returns:
      a builder to add a new remote
      Since:
      6.4
    • add

      @Nonnull GitRemoteAddBuilder add(@Nonnull String name, @Nonnull String url)
    • add

      @Nonnull GitRemoteAddBuilder add(@Nonnull String name, @Nonnull com.atlassian.bitbucket.repository.Repository repository)
      Parameters:
      name - the name to assign the new remote
      repository - the repository of the new remote
      Returns:
      a builder to add a new remote
      Since:
      7.11
    • rm

      @Nonnull GitRemoteRmBuilder rm(@Nonnull String name)
    • setUrl

      @Nonnull GitRemoteSetUrlBuilder setUrl(@Nonnull String name, @Nonnull Path newUrl)
      Parameters:
      name - the name of an existing remote
      newUrl - the new URL to set for the existing remote
      Returns:
      a builder to set the URL for an existing remote
      Since:
      6.4
    • setUrl

      @Nonnull GitRemoteSetUrlBuilder setUrl(@Nonnull String name, @Nonnull String newUrl)