2013-03-17 4 views
2

커밋하고 밀었습니다.Git pull은 병합 할 브랜치를 알지 못합니다.

누군가 다른 사람이 내 지점에서 뭔가를 변경하고 커밋 및 푸시했습니다. 나는 이러한 변화를 원했기 때문에 나는 끌어 내려고 노력했다.

결과 :

From servername 
3de3ee5..4db9ed8 Andrea  -> origin/Andrea 
You asked me to pull without telling me which branch you 
want to merge with, and 'branch.Andrea.merge' in 
your configuration file does not tell me, either. Please 
specify which branch you want to use on the command line and 
try again (e.g. 'git pull <repository> <refspec>'). 
See git-pull(1) for details. 

것은 내가이 설명을 이해하지 못하는 것입니다. 내 지점 이름은 확실히 Andrea이지만 git pull andrea도 작동하지 않습니다. 어떻게 당겨 낼 수 있습니까?

+6

자식 끌어 오기 원산지 안드레아 – Eru

+1

내가 밀어 때 당신이 정말로 밀어 지점이 해당 지역의 하나의 "업스트림"로 설정하지 않은 같은데요. 'git branch -u origin/Andrea Andrea'를 시도한 다음 다시 당겨라. 그건 단지 추측이라고 말하면서, 당신이 언급 한 오류를 재현 할 단계를 우리에게 제공 할 수 있는지를 알아야합니다. – millimoose

+0

http://stackoverflow.com/questions/7388278/you-asked-me-to-pull-without-telling-me-which-branch-you-want-to-merge-with? 비슷한 것처럼 보입니다. – lmsteffan

답변

0

은 나를 위해 일한 다음 :

$ git pull origin Andrea

+0

이 코드 단편은 질문을 해결할 수 있지만 [설명 포함] (http://meta.stackexchange.com/questions/114762/explaining-entirely- 코드 기반 답변)은 게시물의 품질을 향상시키는 데 정말로 도움이됩니다. 앞으로 독자의 질문에 답하고 있으며 코드 제안의 이유를 알지 못할 수도 있습니다. – gunr2171

관련 문제