방금 git push -f실수로 도망 갔으므로 원격 지사를 덮어 썼습니다.
기발한:
(remote origin:)
branch master -> commit aaaaaaa
branch foo -> commit bbbbbbb
(local)
branch master -> commit ccccccc
branch foo -> commit ddddddd
후 git push -f:
(remote origin:)
branch master -> commit ccccccc
branch foo -> commit ddddddd
내 로컬 리포지토리에서 master브랜치에서 작업하고 있으므로 커밋 을 얻을 수 있기 때문에 master커밋 하도록 브랜치 를 복원 aaaaaaa할 수 aaaaaaa있습니다 git reflog. 그러나 bbbbbbb전에 뽑지 않았기 때문에 커밋을 할 수 없었습니다 git push -f.
git reflog원격 저장소에서 시도했지만 베어 저장소의 Reflog에는 유용한 것이 없습니다.
원격 저장소에서 foo커밋 하기 위해 분기를 다시 복원하려면 어떻게 bbbbbbb해야합니까?
(PS 실제 값을 모르겠습니다 bbbbbbb.)