2012-09-21 3 views
2

저는 Play Framework 2.0과 Dojo 1.8을 사용하여 프로젝트를 시작하고 있으며 버전 관리를 위해 Git을 사용할 것입니다. 거대한 라이브러리이기 때문에 Dojo 파일을 프로젝트와 함께 버전을 만드는 것이 좋은 방법인지 알고 싶었습니다.프로젝트와 함께 버전 관리하기

+1

추가적인 수동 단계없이 버전 관리 시스템에서 체크 아웃 한 후 완성 된 * 프로젝트를 만드는 것이 좋습니다. maven 프로젝트가 아니라면 (어떤 play + dojo 프로젝트가 생겼는지는 모르겠다.) 소스 제어하에 dojo 파일을 넣을 것이다. –

답변

2

GitHub에서의 공식 독점 미러 인 이 있습니다. https://github.com/dojo. 프로젝트 저장소에 서브 모듈로 도장, 는 Dijit, DojoX는 및 폴더의 유틸리티 을 추가

# create project directory 
mkdir MyProject 
cd MyProject 

# init git repository 
git init 

# add git submodule 
mkdir src 
git submodule add https://github.com/dojo/dojo.git src/dojo 

# switch to the particular dojo version 
# use `git tag` inside the submodule directory to list available versions 
cd src/dojo 
git checkout 1.8.0 

# repeat previous two steps for dijit, dojox, util (if necessary): 
# https://github.com/dojo/dijit.git 
# https://github.com/dojo/dojox.git 
# https://github.com/dojo/util.git 

# commit changes 
cd ../.. 
git add . 
git commit -m "added dojo submodule and moved it to the version 1.8.0" 

# push if applicable 

를이 내가 몇 시간 전에 같은 질문을했을 때 영감있어이 개 유래 답변은 다음과 같습니다

위의 내용과 함께 나는 A successful Git branching model을 사용합니다.하지만 이것은 설정하는 데 조금 까다 롭습니다. 관심이 있으시면 위의 단계별 지침에 따라 단계를 추가 할 수 있습니다.

관련 문제