728x90
git clone 하기
git clone [원격저장소URL]
clone 할 경우 remote 단축 이름은
origin 으로 자동설정
remote 저장소 추가하기
git remote add [단축이름] [원격저장소URL]
ex) git remote add my_repository https://github.....
원격 저장소 변경 내용 가져오기
git fetch [단축이름]
ex) git fetch origin
** git pull 과 다른 점은 fetch는 자동 merge가 안됨
remote 구체적 정보 확인
git remote show [단축이름]
ex) git remote show origin
remote 저장소 이름 변경하기
git remote rename [원래단축이름] [바꿀단축이름]
ex) git remote rename origin my_remote
remote 저장소 삭제
git remote rm [단축이름]
ex) git remote rm origin
'Git' 카테고리의 다른 글
git - bash로 한번에 push 하기 (1) | 2024.09.02 |
---|---|
Git 명령어 - tag (태그) (0) | 2024.08.25 |
Git 명령어 - 되돌리기 관련 명령어 (0) | 2024.08.25 |
Git 명령어 - 로그 확인하기 (0) | 2024.08.25 |
Git 명령어 - 어떤 내용이 변경됐는지 살펴보기 (0) | 2024.08.25 |