2014-05-16 2 views
0

Git을 통해 PHPMyAdmin의 가장 안정적인 릴리스를 확인하려고합니다. 나는 많은 지시를 온라인으로 가지고있다. 그러나 그들 중의 누구도 일하는 것을 보지 않는다.PHPMyAdmin 안정적인 체크 아웃 작동하지 않음

다음은 공정 내가 너무 신경 여기서

1 단계 : git clone --depth=1 git://github.com/phpmyadmin/phpmyadmin.git 작품!

2 단계 : cd phpmyadmin 작동!

3 단계 :

내가이 오류 부활 :-( git checkout -t origin/STABLE가 작동하지 않습니다.

fatal: Cannot update paths and switch to branch 'STABLE' at the same time. Did you intend to checkout 'origin/STABLE' which can not be resolved as commit? 그럼 난 그냥 다시 시도 프롬프트에서 끝을

나는 또한이 시도했습니다 master/STABLE & origin/master/STABLE

현재 방향 나는 github을 가리킨다. 그러나 나는 PHPMyAdmin.net에서 SourceForge를보고있다. 잘못된 장소를 가리키고 있는가?

어떤 도움이라도 대단히 감사합니다!

답변

1

그래서 문제는 첫 번째 줄에 있습니다. 여기서 우리는 복제본이 우리의 필요에 맞게 올바르게 완료되었다고 생각합니다.

당신은 --depth 옵션을 git clone 전화, 당신은 가장 최근의 원격의 기본 분기 및 다른 기록이나 나뭇 가지에 커밋 잡는했는지 확인합니다. 리모컨에는 master이라는 기본 분기가 있습니다. 즉, STABLE을 전혀 다운로드하지 않은 것입니다. git clone에 대한 망할 놈의 문서에서

강조 광산 :

--[no-]single-branch

Clone only the history leading to the tip of a single branch, either specified by the --branch option or the primary branch remote's HEAD points at. When creating a shallow clone with the --depth option, this is the default, unless --no-single-branch is given to fetch the histories near the tips of all branches. Further fetches into the resulting repository will only update the remote-tracking branch for the branch this option was used for the initial cloning. If the HEAD at the remote did not point at any branch when --single-branch clone was made, no remote-tracking branch is created.

이 이것을 해결하기 위해 몇 가지 방법이 있지만 가장 쉬운 방법은을 사용하여, 당신이 원하는하는지에 대해 제대로을 복제하는 것입니다 --branch 실제로 원하는 분기의 끝을 복제하는 옵션입니다.

git clone --depth=1 --branch=STABLE git://github.com/phpmyadmin/phpmyadmin.git 

그것은 그 커밋을 모두 얻을 수 있기 때문에 --no-single-branch 사용하여 복제를 실행하는 것보다 다운로드 작다; 해당 저장소의 경우 ~60MB--branch=STABLE이고, ~140MB--no-single-branch입니다.

관련 문제