귀농 전까지 쓰는 개발 일지

[GitHub] commit/push/pull (feat.VSCode) 본문

공부/GitHub

[GitHub] commit/push/pull (feat.VSCode)

한호잉 2022. 1. 11. 22:36

Commit/push/pull 차이점

commit

- Local Repository(로컬 저장소)에 반영 *git에 반영 안됨 (내 PC에만 반영)

push

- Remote Repository(원격 저장소)에 반영 *git에 반영됨

 

Pull

- Remote Repository(원격 저장소)의 정보를 가져옴 *로컬브랜치에 자동 병합 (어떤 부분이 바뀌는지 알기 어려움)

 

============================================================================

 

 

*사용자1 내용 변경 후 commit/push -> 사용자2 pull하여 변경된 내용 받아오기*

사용자1

commit/push

 

사용자2

Pull

변경 내용 정상 반영됨

- Git에서 commit/push하며 남긴 log, message 확인 가능

 

 

'공부 > GitHub' 카테고리의 다른 글

[GitHub] 공동 작업자 설정  (0) 2022.01.11
[GitHub] Clone(깃에서 받아오기) feat.VSCode  (0) 2022.01.11
[GitHub] Git업로드 (처음) feat.VSCode  (0) 2022.01.11
[GitHub] 기본절차  (0) 2022.01.11