Notice
Recent Posts
Recent Comments
Link
관리 메뉴

데브마우스

[Git:명령어정리] fetch 명령어 정리 본문

Git/Git: 명령어 정리

[Git:명령어정리] fetch 명령어 정리

데브마우스 2024. 1. 15. 12:47

Git의 fetch 명령어란 무엇인가요?

fetch란 찾다는 뜻입니다. git fetch 명령어는 원격 저장소(리포지터리)에 최신 커밋이 있는지 확인하는 키워드입니다.

확인만 할 뿐이며 최신 커밋을 다운로드 하지 않습니다.

 

git fetch 명령어 형식은 아래와 같습니다.

git fetch [<options>] [<repository> [<refspec>…​]]
git fetch [<options>] <group>
git fetch --multiple [<options>] [(<repository> | <group>)…​]
git fetch --all [<options>]

 

출처: Git/mingw64/share/doc/git-doc/git-fetch.html