GitNotes.45-1.md
본 문서는 Git Notes for Professionals (라이센스:CC-BY-SA) 를 한글로 번역한 문서입니다. 번역상 오류가 있을 수 있으므로 정확한 내용은 원본 문서를 참고하세요.

Section 45.1: 원격 저장소들 표시하기

현재 설정된 모든 원격 저장소들을 나열하고 싶다면, git remote 명령어를 사용한다.

해당 명령어 실행 시, 현재 구성되어 있는 각 원격 저장소들의 축약된 이름 (별칭들) 을 출력해 준다.

$ git remote premium premiumPro origin

보다 상세한 정보를 출력하고자 한다면, --verbose 혹은 -v 옵션을 사용할 수 있다. 출력 결과에 각 원격 저장소의 URL 정보와 종류 (push 혹은 pull) 가 추가적으로 포함될 것이다:

$ git remote -v premiumPro https://github.com/user/CatClickerPro.git (fetch) premiumPro https://github.com/user/CatClickerPro.git (push) premium https://github.com/user/CatClicker.git (fetch) premium https://github.com/user/CatClicker.git (push) origin https://github.com/ud/starter.git (fetch) origin https://github.com/ud/starter.git (push)

[출처] https://books.goalkicker.com/GitBook/ (CC BY-SA)

반응형

'번역 > Git Notes for Professionals' 카테고리의 다른 글

45.3: 원격 저장소 정보 삭제하기  (0) 2020.04.21
45.2: Git 저장소의 원격 URL 변경하기  (0) 2020.04.21
45: Git Remote  (0) 2020.04.20
44.2: Worktree 이동시키기  (0) 2020.04.16
44.1: worktree 사용하기  (0) 2020.04.16

+ Recent posts