Git 저장소를 export 해서 전달해야할 때는 git archive 를 사용하면 된다.


현재 브랜치의 가장 최신 내용을 export 하는 경우


git archive --format=tar --prefix=junk/ HEAD



zip 으로 remote 브랜치를 export 하는 경우


git archive --format=zip branch.zip remotes/origin/branch





참고 : https://git-scm.com/docs/git-archive

728x90

+ Recent posts