2011-04-01 4 views

답변

34

대답 : 로컬 브랜치가 에서 가져 오도록 구성되어 있지 않으므로 가져올 브랜치를 지정해야합니다. 이 명령은 로컬 지점 develop에 끌어 위해서는 develop을 체크 아웃 한해야 할 것을 기억

git pull heroku master 

:

그래서 뭔가를하려고합니다.

+0

잘 리모컨은 'heroku'라고합니다. 제가 기억하는 것은 여러분이 알고있는 나의 지역 지점을 원한다는 것입니다. 'git pull heroku develop '을 할 때 개발이라는 원격 지점이 없기 때문에 치명적인 오류가 발생합니다. 내가하고 싶은 것은'heroku '라고 불리는 리모트 마스터 지점에서'development'라는 나의 지부까지 끌어들이는 것이다. – marcamillion

+0

답장으로 master는 원격 지점입니다. – RobW

5

당신이 당길 때 당신은 끌어야 할 원격 지점을 지정해야합니다. 그것은 여러 가지 가지를 가질 수도 있고 힘내는 당신이 원하는 것을 알지 못하기 때문에 그냥 "heroku"에서 끌어 당기는 것은 말이되지 않습니다.

리모컨에 브랜치가 하나만 있다면 아마 "마스터"라고합니다. 시도해보십시오 :

이렇게하면 로컬 "개발"분기로 이동하고 "heroku"라는 저장소에서 "마스터"분기를 가져옵니다.

6

참고 : 당신은 함께 develop 분기에 병합 정책을 확인하실 수 있습니다

git branch --set-upstream develop heroku/master 

: 당신은/밀어 당신의 develop 지점에서 heroku/master 기본적으로 끌어하려는 경우, 당신은 그것을 구성 할 수 있습니다

git config branch.develop.merge 
2

이 글을 쓰는 시점에서 git pull 명령이 대답을 제공합니다. 내가 더 인수없이 git pull하려고 할 때, 그것은 나에게 다음과 같은 정보 제공 : 그래서

rockyinde.desktop% git pull 
remote: Counting objects: 143, done. 
remote: Compressing objects: 100% (95/95), done. 
remote: Total 143 (delta 75), reused 87 (delta 23) 
Receiving objects: 100% (143/143), 29.59 KiB | 0 bytes/s, done. 
Resolving deltas: 100% (75/75), completed with 33 local objects. 
From ssh://git.rockyinde.com:<port>/code/myproject 
    2d232ds..1hw1f84 frontline -> rockyremote/frontline 

There is no tracking information for the current branch. 
Please specify which branch you want to merge with. 
See git-pull(1) for details 

    git pull <remote> <branch> 

If you wish to set tracking information for this branch you can do so with: 

    git branch --set-upstream-to=<remote>/<branch> develop 

을, 당신은 (위의 출력에)보고 할 필요는 다음과 같습니다

From ssh://git.rockyinde.com:<port>/code/myproject 
    2d232ds..1hw1f84 frontline -> rockyremote/frontline 

를 지정 remote/branch 정보입니다. 그리고 내 경우에는 다음과 같습니다 :

git pull rockyremote frontline 
관련 문제