Skip to content

remoteNames

리포지토리에 설정된 모든 리모트 목록을 가져와요.

시그니처

ts
class Repository {
  remoteNames(): string[];
}

반환 값

  • string[]

    이 리포지토리에 설정된 모든 리모트의 이름을 배열로 반환해요.

예제

ts
import { openRepository } from 'es-git';

const repo = await openRepository('/path/to/repo');
console.log(repo.remoteNames()); // ["origin"]

MIT 라이선스에 따라 배포됩니다.