
들어가기 전
이번에 깃을 다시 공부하면서 정말 좋은 사이트를 발견했다.
바로 심플한 ui와 애니메이션으로 깃의 내부 동작을 볼수 있는 사이트
바로 Learn Git 홈페이지이다.
모든 명령어를 볼 수는 없지만 존재하는 명령어는 해당 사이트를 통해 정리해보자.
Learn Git Branching
An interactive Git visualization tool to educate and challenge!
learngitbranching.js.org
git init
첫번 째 명령어는 역시 모든 시스템의 진입점인 init 바로 초기화 명령어다.
더 자세히는 깃 로컬 레포지터리를 생성하는 작업이다.
초기화가 끝나면 다음과 같은 숨기처린된 .git 디렉토리가 보일 것이다.

Git - git-init Documentation
-q --quiet Only print error and warning messages; all other output will be suppressed. --bare Create a bare repository. If GIT_DIR environment is not set, it is set to the current working directory. --object-format= Specify the given object (hash algorithm
git-scm.com
git clone
두번 째 명령어는 clone이다.
영어 뜻 그대로 복제하는 명령어다.
무엇을 복제할까 ??? 바로 레포지토리 (저장소)이다.
깃에서 저장소는 크게 2가지다 바로 원격(remote)와 내부(local) 저장소다.
하지만 우리는 이 명령어를 보통 원격 저장소에 사용했을 것이다.
git clone https://github.com/wakmusic/wakmusic-iOS.git
clone 명령어는 저장소를 복제하는 동작으로 나머지 저장소인 로컬도 복제할 수 있다.
git clone ./targetRepository
Git - git-clone Documentation
In general, URLs contain information about the transport protocol, the address of the remote server, and the path to the repository. Depending on the transport protocol, some of this information may be absent. Git supports ssh, git, http, and https protoco
git-scm.com
'Git > 명령어' 카테고리의 다른 글
| ignore 깜빡 했을 때 (0) | 2025.07.12 |
|---|---|
| 깃 커밋 관련 명령어 (3) | 2024.11.17 |
| 깃 기본 명령어 (2) | 2024.11.08 |