Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
Git : remote 명령어 정리 본문
remote
리모트 저장소 목록
로컬 저장소에 등록된 리모트 저장소를 모두 출력하되 단축이름만 표시합니다.
git remote
리모트 저장소 URL 확인
리모트 저장소의 단축이름과 URL을 표시합니다.
git remote -v
리모트 저장소 URL 바꾸기
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
리모트 저장소 추가
git remote add 단축이름 주소
git remote add remoteRepo https://noritersand@dev.naver.com/git/exlernforscm.git
리모트 저장소 살펴보기
특정 로컬 저장소의 구체적인 정보(URL, 추적중인 브랜치 등)를 표시합니다.
git remote show origin # origin 저장소의 상세정보 표시
리모트 저장소 이름 바꾸기
git remote rename NAME_FROM NAME_TO
리모트 저장소 삭제
git remote rm 리모트저장소이름
리모트 저장소에서 쓸모가 없어진 브랜치 제거하기
git remote prune 리모트저장소
'랭귀지 > Git' 카테고리의 다른 글
github remote 제거(기존) 및 remote 추가(신규) (0) | 2020.11.24 |
---|---|
error: failed to push some refs to (0) | 2020.11.16 |
Git : pull 명령어 정리 (0) | 2018.08.07 |
Git : log 명령어 정리 (0) | 2018.08.06 |
Git : diff 명령어 정리 (0) | 2018.08.05 |
Comments