내가 온라인 상태 일 때 git fetch
이 에드온되었을 때 브랜치를 빨리 감는 방법. 지금은 오프라인 상태이고 이전에 가져온 상태로 빨리 감기를 원합니다. 내가 오프라인 해요 그리고 이렇게 예를 들어오프라인 일 때 브랜치를 빨리 감는 방법
다음
$ git checkout develop
Switched to branch 'develop'
Your branch is behind 'origin/develop' by 37 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
내가 얻을 git pull
를 사용하려고 할 때 :
$ git pull
ssh: Could not resolve hostname <hostname>: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
무엇 명령 내가이 경우에 사용해야합니까? git pull
이후
자식'에 대해 경고를 --hard 원산지/develop' :이 명령은 멀리 모든 수정 사항을 발생합니다. 모든 것을 버리고이 정확한 커밋으로 가고 싶다는 것을 아는 경우에만 사용하십시오. – LeGEC
로컬 변경 사항이있는 경우'git pull' /'git merge'가 작동하지 않습니다. – aragaer
당신은 먼저'git merge --ff-only origin/master'을 실행하고 그것이 작동 하는지를 볼 수 있습니다. 그렇지 않다면 아무 것도 망치지 않았고 여전히'git merge '나'git rebase'를 실행하거나'master'와'origin/master'의 차이점을 검사 할 수 있습니다. . – LeGEC