createRemote
리포지토리 설정에 기본 fetch refspec을 가진 리모트를 추가해요.
시그니처
ts
class Repository {
createRemote(name: string, url: string, options?: CreateRemoteOptions | null | undefined): Remote;
}
파라미터
- name필수 · string
리모트의 이름이에요.
- url필수 · string
리모트의 URL이에요.
- optionsnull | CreateRemoteOptions
리모트 생성 옵션이에요.
- fetchRefspecstring
리모트에서 데이터를 가져올(fetch) refspec을 설정해요.
- fetchRefspecstring
반환 값
- Remote
생성된 리모트를 반환해요.