2017-02-15 10 views
0

인터넷 연결이 끊기기 전에 git fetch --all을 실행하여 모든 지점을 가져 왔습니다.git pull fetch head/unavailable server

이제 서버에 연결할 수 없으므로 git pull을 어떻게 처리 할 수 ​​있습니까? git pull이 무엇

$ git checkout feature.a 
Already on 'feature.a' 
Your branch is behind 'origin/feature.a' by 7 commits, and can be fast-forwarded. 
    (use "git pull" to update your local branch) 

$ git pull 
ssh: Could not resolve hostname unavailable.example.com: nodename nor servname provided, or not known 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
+0

'pull'은'fetch'와'merge'입니다. 이제해야 할 일은'git merge origin/branch mybranch'입니다. – castis

+0

완벽하게 작동했습니다. 나는 솔직히 당김이 병합을 실행했다는 것을 깨닫지 못했고, 나는 '원점/x'가 그 점 _의 원점으로 갔지만 말입니다. 허. 이것은 지금 오싹한 감각을 만든다. 이것을 답으로 추가하려면 동의 할 것입니다. 나는 다른 게시 된 대답 전에 이것을 읽었다. –

+0

확실한 일, 할 것이다. – castis

답변

3

은 이미 fetch를 한 경우에, 당신은 git merge origin/feature.a을 할 수하는 merge 다음에 fetch, 그래서.

0

pullfetch이고 그 뒤에는 merge이 오기 때문에 git merge origin/feature.a feature.a 일 수 있습니다.