전체 저장소를 네트워크에 연결되지 않은 새 시스템 (단일 파일 엔티티로 선호 됨)으로 전송해야합니다. git 번들은 sneakernet 환경에서 git fetch, git pull스타일 작업을 허용 하지만 대상 머신에 이미 작동중인 저장소 버전이 있다고 가정하는 것으로 보입니다.
다음에 대한 올바른 호출은 무엇입니까?
- 현재 저장소의 모든 분기를 번들로 묶습니다.
- 대상 디렉토리에서 새 저장소를 시작합니다. 즉, 루트 커밋을 올바르게 설치합니다.
명확히하기 위해 패치 업스트림을 보냈습니다.
`git clone` can use any bundle created without negative refspecs
(e.g., `new`, but not `old..new`).
If you want to match `git clone --mirror`, which would clone other
refs such as `refs/remotes/*`, use `--all`.
If you want to provide the same set of refs that a clone directly
from the source repository would get, use `--branches --tags` for
the `<git-rev-list-args>`.
따라서 $ git bundle create repo.bundle --branches --tags복제에 가장 적합합니다.
$ git bundle create repo.bundle --all 원격 참조를 포함하여 소스 머신의 미러 이미지를 제공합니다.
--all옵션은 내 man 페이지에 없습니다bundle(버전 1.7.6.msysgit.0보고 있음), URL 섹션의 .bundle 파일 사용도clone. 사용을 추천하는 것이 더 큰 자신감을줍니다.