한국어
Appearance
리포지토리에 설정된 모든 리모트 목록을 가져와요.
class Repository { remoteNames(): string[]; }
이 리포지토리에 설정된 모든 리모트의 이름을 배열로 반환해요.
import { openRepository } from 'es-git'; const repo = await openRepository('/path/to/repo'); console.log(repo.remoteNames()); // ["origin"]