2012-02-14 5 views
0

나는 http://nvie.com/posts/a-successful-git-branching-model/ 그래서 나는 그것에 관한 질문이 흥미로운 링크있어 분기가 :자식 워크 플로우 모델 및

하는 방법 (맨손으로) "기원"의 repo를 초기화하거나 작업 분기를?

최종 통합은 언제합니까? 원산지가 베어 레포라면 로컬 브랜치에서해야하고 공용 (베어) 레포로 푸시해야합니까?

안부, 피터

+1

귀하의 질문은, 당신이 무엇을 요구 분명하지 않다 나에게 정말 혼란 스럽다. – Ikke

+1

"원본"을 만드는 방법은 무엇입니까? – Pepe

+0

"origin"저장소는 일반적으로 커밋 및 분기를 밀어 넣고 당기는 원격 자식 서버를 의미합니다. git 서버를 설치하는 방법을 알고 싶습니까? –

답변

0

당신은 그것을 베어해야 서버로 사용하려는 경우. 그래서 거기에서 변화와 가지를 밀고 당길 수 있습니다. 그것을 베어하지 않으면

, 당신은 노출되어야하는 이유를 설명,이 같은 메시지가 나타날 것입니다 :

Counting objects: 3, done. 
    Delta compression using up to 2 threads. 
    Compressing objects: 100% (2/2), done. 
    Writing objects: 100% (2/2), 239 bytes, done. 
    Total 2 (delta 0), reused 0 (delta 0) 
    Unpacking objects: 100% (2/2), done. 
    remote: error: refusing to update checked out branch: refs/heads/master 
    remote: error: By default, updating the current branch in a non-bare repository 
    remote: error: is denied, because it will make the index and work tree inconsistent 
    remote: error: with what you pushed, and will require 'git reset --hard' to match 
    remote: error: the work tree to HEAD. 
    remote: error: 
    remote: error: You can set 'receive.denyCurrentBranch' configuration variable to 
    remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into 
    remote: error: its current branch; however, this is not recommended unless you 
    remote: error: arranged to update its work tree to match what you pushed in some 
    remote: error: other way. 
    remote: error: 
    remote: error: To squelch this message and still keep the default behaviour, set 
    remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'. 
    To /Users/flores/Code/git-test 
    ! [remote rejected] master -> master (branch is currently checked out) 
    error: failed to push some refs to '/Users/flores/Code/git-test' 
+0

나는 그것을 얻었다. 고마워요! – Pepe

+0

"벌거 벗은"repo 인 경우, 맨발의 repo에서 분기를 만들 수 있습니다. 가지를 바꿀 수 있습니까? 그것들을 전환하는 것이 합리적입니까? 기타 질문 : 내가 이해한다면 나는 작업중인 나무처럼 맨손으로 repo에서 작업 할 수 없습니다. 따라서 릴리스, 핫 픽스 (hot-fixes) 등을 로컬로 수행 한 다음 베어 레포로 푸시해야합니다. 맞습니까? – Pepe

+0

수정하십시오. 노출 된 저장소는 개발 저장소가 아니며 변경 사항을 가져오고 푸시하는 저장소입니다. –

관련 문제