0
두 개의 git
명령이 정확히 같은지 알고 싶습니다."git clone -b name url"대 "git clone url - branch name"은 같습니까?
git clone git://git.yoctoproject.org/poky --branch daisy
git clone -b daisy git://git.yoctoproject.org/poky.git
두 개의 git
명령이 정확히 같은지 알고 싶습니다."git clone -b name url"대 "git clone url - branch name"은 같습니까?
git clone git://git.yoctoproject.org/poky --branch daisy
git clone -b daisy git://git.yoctoproject.org/poky.git
는 자식 설명서 페이지에 따르면 theese 명령은 동일하다 :
$ git help clone
....
--branch <name>, -b <name>
Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository’s HEAD, point to <name> branch instead. In a non-bare
repository, this is the branch that will be checked out. --branch can also take tags and detaches the HEAD at that commit in the resulting
repository.
....
당신이 -b
을 볼 수 있고 --branch
그냥 동의어로. 누락 된 내선 번호 .git
(첫 번째 경우)은 자동으로 결정되고 (프로토콜 을 고려) 매개 변수 순서는 중요하지 않습니다.