그래서 여기서 Git / Bitbucket에 대해 뭔가를 얻지 못했지만 정확히 무엇인지 모르겠습니다. 내 깊이에서 약간 벗어난 것 같습니다.
1 년 동안 휴면 상태에있는 프로젝트가 있는데 Bitbucket과의 연결이 끊어졌습니다. 기존 원격 오리진을 내 로컬 리포지토리에 어떻게 재 할당합니까?
로컬 git 커밋 (잘 작동 함)을 수행했지만 git pull
푸시를 미리 수행 했을 때 다음 과 같은 결과를 얻었습니다.
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=origin/<branch> master
나는 시도했다 :
git branch --set-upstream-to=origin/[email protected]:<username>/<repo>.git master
... 작동하지 않았습니다. 알았어:
error: the requested upstream branch 'origin/[email protected]:<username>/<repo>.git' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
이 프로젝트에 대한 BitBucket 리포지토리가 있다는 것을 알고 있습니다 (브라우저에서 BitBucket을 방문하면이를 확인 함). 프로젝트 상태는 단 하나의 커밋 뒤에 있습니다.
미리 감사드립니다.
대신에
git branch --set-upstream-to=origin/[email protected]:<username>/<repo>.git master
사용해보십시오
git branch --set-upstream-to=origin/master master
그런 다음 git fetch
.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다