• Remove a git remote from the given directory.

    Parameters

    • directory: string

      The directory where the git repository is located.

    • remoteName: string = 'origin'

      The name of the remote to remove (defaults to 'origin').

    Returns Promise<void>

    A promise that resolves when the remote is removed.