Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リモートで削除され、もう存在しない孤立したリモートブランチを復元するにはどうすればよいですか?
それを行う明確な方法はありません。
ブランチは単にコミットへのポインターであることに注意してください。 したがって、誰かがそのブランチの最後のコミットをローカルに持っていた場合、その人は を実行しgit reflog、コミットを見つけて、好きなcherry-pick場所に置くことができます。
git reflog
cherry-pick
git checkout orphan_branch git push origin orphan_branch