作業ブランチ外で作業してしまった際の対処(未コミット)
1. 作業を退避
code:sh
git stash
2. mainを戻す
code:sh
git checkout main
git reset --hard origin/main
3. 作業ブランチを作成
code:sh
git checkout -b develop origin/main
4. 退避した作業を復元
code:sh
git stash pop